Use flake8 in run_tests.sh and updated ignore flake8 rules with tox.ini

Change-Id: I9ec82e4ddbaa8c9f256ff962c48dfb556948b32d
Fixes: bug #1180609
Merge "Use flake8 in run_tests.sh and updated ignore flake8 rules with tox.ini"