fix rounding error causing CPU hog

time.sleep accepts a floating point variable to indicate a more precise sleep times. Without the fix the default sleep time would be rounded down to 0.