from ctypes import CDLL
libm = CDLL('libm.so.6')
libm.drem.restype = c_double
print(libm.drem(c_double(1.0), c_double(2.0)))
How can I simulate GNU C Library drem / remainder function in Google App Engine Python 2.7 runtime?