PEP8, python2 and py3k support