Support for python-2.6

- Converted the map+lambda expression to a list comprehension to get header index. 
- Added format indexes in formatting_string to support python-2.6