reason for fork: works for Python 3.3.2