tested template functions with py 3