bugfix for Python 3

Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>