Fixes #395, this fixes an import error on python 2.4