Merge from Oslo-Incubator

This merges the common util classes from Oslo-Incubator,
which brings a lot of Python 3.x related fixes and
Hacking warning fixes.

Change-Id: Id1da7a11af977233a036c7c70c49d3038500363b
Merge "Merge from Oslo-Incubator"