Debian stable (jessie) <i>and</i> oldstable (wheezy) both have python 2.7, which supports the {} syntax.  Why are you still running Debian oldoldstable (squeeze) or older?  The standard security support ended long ago, and even the LTS security support ends in February 2016.