gprot.py: Extract from topology also function types