scripts: python: cleanup script and fix PEP8 issues

Ran scripts through flake8 and fixed issues.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
14 files changed