workarounds for python 3.2.3