Video in TIB AV-Portal: Support Python 2 and 3 with the same code