global: Python 3.3+ support

* Adds PY2/PY3 compatibility layer.  (closes #2)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>