Backport CircleCI support (#64) to 1.9.x branch
Fix flake8 errors