stmhal: Improve USB CDC write function (increase timeout).
py: Detect ZeroDivisionError properly for floats.
tests: Make tests pass on pyboard.