fixed python 3 on old compilers, fixes #551