how to use python function