Error message fixes + flake8

 * flake8 fixes
 * run_tests.sh added
 * Fixed error messages on raise's

Change-Id: Ib28d7311e2b9eadecf0a431239c1f78fd0adacf3
Merge "Error message fixes + flake8"