Hello chaley! (I do hope I got that right this time

)
I am using a Mac with OSX 10.6.8 and the local is UK. However, I don't think this is the cause of the problem.
You are correct in that I am using pchrist7's custom template function and looking at it I also agree that the formatting needs to be done inside of the function. I think I might have to do a bit of research here as I have never played with python before.
Thank you for your wisdom!