Small tip:
```python
>>> print 'foo {0}'.format('bar')
foo bar
>>> print 'foo {0!r}'.format('bar')
foo 'bar'
>>> 
```