feeble attempt at superficial python 3 compatibility