Change flake8 settings for 'openstack' directories

Also, following pep8 errors were fixed.

Change-Id: I6fa056adb205f9979bf8fa6803bcc5e949f56d09
Closes-Bug: #1295284