I just read the test code and reflected it to https://www.python.org/dev/peps/pep-0008/ code style. There is partial of them, and if this pull request be accepted, I will continue to reflect all of them done.
(I'm not a native English speaker, and sorry for my bad English)