removed unnecessary imports and python2 support
pep8'd conviron module
fixed some pylint suggestions