We know we have a float, so you can use the macro form PyFloat_AS_DOUBLE:
http://docs.python.org/2/c-api/float.html#PyFloat_AS_DOUBLE