changing format options to handle py2.6