py: Fix float printing on stmhal.