rename maxfilter_function from ipy to py