python make function callable