improved check script
pep8 fixes