python interface: extract method print_method_type
python interface: extract method print_method_type

This reduces code duplication. We use this opportunity to add some
documentation.

Signed-off-by: Tobias Grosser <059b8b880f8441509ec8a65b50b4c6ae74ebea76@grosser.es>
Signed-off-by: Sven Verdoolaege <e5350bbed4977f5eb8ae1dc6abd9ae59d21ace75@kotnet.org>

PollyLabs/isl,PollyLabs/isl,tobig/isl,tobig/isl,UBERTC/isl,nicolasvasilache/isl,nicolasvasilache/isl,UBERTC/isl,Meinersbur/isl,inducer/isl-mirror,tobig/isl,inducer/isl-mirror,PollyLabs/isl,inducer/isl-mirror,Meinersbur/isl,nicolasvasilache/isl,inducer/isl-mirror,nicolasvasilache/isl,inducer/isl-mirror,nicolasvasilache/isl,Meinersbur/isl,UBERTC/isl,tobig/isl,PollyLabs/isl,Meinersbur/isl,UBERTC/isl,PollyLabs/isl