removed basestring for python 3 support
PEP8 guidelines fixture