python interface: extract method print_method_types