Python 3: enable tests/unit/middleware/test_request_id.py

In Python 3, webob will return bytes, so we need to fix generate_request_id()
so that it also returns bytes. The behaviour is unchanged in Python 2.

Change-Id: I389cf20e4c999c9bb576a42388497852f8ba27ec
Fix test_gettextutils on Python 3

On Python 3, str(obj) calls obj.__str__(), not obj.__unicode__().

The test does not pass with nosetests, LogLevelTranslationsTest fails with an
AttributeError (self.level is missing), because nosetests doesn't play well
with test scenarios.

Change-Id: I78ae106e336480d9995ac4394197ea45b8ef9b07
Removed unneeded #noqa tag

Closes-Bug: #1298551
Change-Id: Ie6a75a57b9a765736d320c3eff624b7901540064
Add option for GM report to dump to a file

This patch adds the option to Guru Meditation report to dump report to a
file instead of stderr. If passed a log_dir parameter when calling
setup_autorun() method, the report will be dumped to a file named
<SERVICE_NAME>_gurumeditation_<TIMESTAMP> in the specified log_dir.

This patch also adds service_name parameter to the setup_autorun() which
will be defaulted to the top python module filename if omitted..

Change-Id: If5a7e9731b81c76506613e2617c33613d295937a
Fixes command being displayed on same line.

Commands are displayed on the same line on github, this patch will
fix the issue and display the next command on new line.

Change-Id: Ice46ac1aaa40fb9c5de50162f73f678b8fb63808
Merge "Removed unneeded #noqa tag"
Merge "Python 3: enable tests/unit/middleware/test_request_id.py"
Merge "Fix test_gettextutils on Python 3"