replaced {} with {0} for backward compatibility with older python