def parse_address(address):
 m = _PCI_ADDRESS_REGEX.match(address)
 if (not m):
  raise exception.PciDeviceWrongAddressFormat(address=address)
 return m.groups()

def parse_address ( address ) : m = _PCI_ADDRESS_REGEX . match ( address ) if ( not m ) : raise exception . PciDeviceWrongAddressFormat ( address = address ) return m . groups ( )
takes a string and returns a tuple .