Make .format() work with older Python versions