Python3 workaround