timer = kernel32.CreateWaitableTimerA(ctypes.c_void_p(), True, ctypes.
    c_void_p())
delay = ctypes.c_longlong(0.25 * 10000)
kernel32.SetWaitableTimer(timer, ctypes.byref(delay), 0, ctypes.c_void_p(),
    ctypes.c_void_p(), False)
kernel32.WaitForSingleObject(timer, 4294967295)
Sleep for exact time in python