Fix pep8 and pyflakes versions and fix tox.ini

Change-Id: Id70af7f8684746cecaaadae067b4346e8e1b4dc9