a16: internal_gateway.py