Add she-bang to be able to run this script as cgi on server
Add position index in format string to support Python 2.6 which runs on server