I think the recommended pattern now for string formatting is to use .format() rather than '%' operator.