String Formatting Function In Python