add print method for otf_function objects