Freeze pycurl version in tox.ini
Add flake8 config to tox.ini
Code cleanup