python pass format string to function