fix py33 and some flake8