get rid of PEP8 errors about private module functions
Merge pull request #13 from pkit/pty_private

pep8: fix errors about using private module functions