Python Dynamically Add Function To Module