Fix various Pep8 1.5.4 errors

Pep8 1.5.4 fixes several bugs in visual indent and spaces
detection. Adjust the code accordingly so that it passes
once we try to upgrade.

Change-Id: I5691ffd29edcb32fdbacd9da7ca71bfcabeeffe5
Fixes spelling error in test name

Changes 'attribtues' to 'attributes' in the
'test_image_create_unknown_attributes' test.

Apologies in advance for the Zuul+Jenkins time this will waste.

Change-Id: I6b26d6efc6353461a36bc742055b906d328f34f1
Removing duplicate entry from base_conf

Removing duplicate enable_v2_api entry.

Change-Id: Id1c531771810310887dbb5a6b8e6f0e4571547bf
Clean up openstack-common.conf

The issues are detected by new change about update.py
in I68c0108304be8a315bcefe939c22019caab9bc98. This patch
doesn't depend the oslo-incubator patch.
 * remove unused module eventlet_backdoor, service,
   threadgroup, loopingcall.
 * add missing module excutils, processutils inopenstack-common.conf

Change-Id: Ice2acb3ff73111858f5cf39e8fbdfb7db4b7c538
Use safe way through "with" statement to work with files

It's good practice to use with statement to work with files. This way files get
closed automatically at the end of the block. Fixed some cases, including some
where file wasn't closed after usage

Change-Id: I9399f2a2b7edb1cd5aa64782cd9f980f9233b827
fixed typos found by RETF rules in RST files

rules are avaialble at
https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser/Typos

Change-Id: I725d3892d915bf880e62b8b11b97dcfc0a804a41
Merge "Fix various Pep8 1.5.4 errors"
Merge "Use safe way through "with" statement to work with files"
Merge "Clean up openstack-common.conf"
Remove all mostly untranslated PO files

We now only import PO files that are at least 75 % translated,
so we can delete now all other PO files. The patch only
removes the mostly untranslated files. Once a file becomes mostly
translated, the bot will import it again.

This removes all languages besides en_US.

Change-Id: Ib630d5e89ee6bca8b554110b2703cca85fb70c3b
Closes-Bug: #1317794
use /usr/bin/env python instead of /usr/bin/python

The usage of /usr/bin/env ensures that the first interpreter
found in the environment's $PATH variable is used.

Change-Id: I61b27bb9a5fc1f8d2a3981472215bc0aa6a389e2
debug level logs should not be translated

According to the OpenStack translation policy available at
https://wiki.openstack.org/wiki/LoggingStandards debug messages
should not be translated. Like mentioned in several changes in
Nova by garyk this is to help prioritize log translation.

This patch adds a new hacking check - N319 - that ensures all
debug log messages don't have translations.

Change-Id: I9dd958b904671a7eb95883026e14684469dc52d5
Closes-Bug: #1317847
TaskTest:test_fail() should use asserIstNone

test_fail() in the TasksTest class of tests/unit/test_domain.py uses
assertEqual when testing for None; assertIsNone is more appropriate
here.

This is the kind of thing that would be automatically picked up
by change Ic115342605c472f3a5d255aa570ecb60175ca087

Change-Id: I900334182f056f8b3656339b5bad0b60b334e7dd
Merge "debug level logs should not be translated"
Merge "use /usr/bin/env python instead of /usr/bin/python"
Merge "fixed typos found by RETF rules in RST files"
Merge "Removing duplicate entry from base_conf"
Merge "Fixes spelling error in test name"
Merge "TaskTest:test_fail() should use asserIstNone"