pylib: better parameter handling
Revamped slowing down

Slowing linearly, by decrementing the current speed by 6 each cycle. The
previous algorithm was quite broken.