fixing pep8; fixing import os incoherences