py: Fix pfenv_print_strn to return correct number of chars printed.

With this fix, all tests in tests/basics pass on pyboard.
Merge branch 'master' of github.com:micropython/micropython