Looks like you're trying to time.Sleep...

This should make less garbage