py: Make functions static where appropriate.
py: Remove static from definition of pfenv_printf.

It's used by stmhal, but not unix.