use flake8 instead of pep8

Change-Id: I601fc366c6e6c87b60c5dd701e522cba6ca8bb5a
Reviewed-on: http://review.couchbase.org/36457
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>