Input functions

@PythonDynamics 

Added the ability to pass in functions for specified value computation in the integration loop.