python format string from dict