Python Create Function Dynamically Continuous Innovation