move import os to top for pep8