Gateway Interfaces in Python