Changed "{}"s with "{0}"s in order to make it work with Python 2.6