modified the python interface to allow for the setting of optional parameters