Just for curiosity, why you are using 0.1 resolution in time.sleep?
1 sec is too much?