Use Python 3.3’s inspect.signature()