register formatter for PythonProgram unit type