Hack for Python 2.5 on Windows where float('nan') fails