pyfunc: print_python democratized with multipledispatch