py: Revert some inline functions back to macros, since they bloat stmhal.