I don't think templates can import python functions.