python: Make the code compatibly with 3.2
python: Make the code compatibly with 3.2

The previous change used some 3.3-specific functions.
We still support 3.2 so revert to 3.2-compatible calls.

Reported-by: S.Çağlar Onur <acf5ae661bb0a9f738c88a741b1d35ac69ab5408@10ur.org>
Signed-off-by: Stéphane Graber <089afc6d81f66f1168a9849e15660feae286e024@ubuntu.com>
Acked-by: Serge E. Hallyn <3df611b026e4639bee8aef7a4beb2e39fcebb313@ubuntu.com>

yubo/lxc,DarknessBeforeDawn/lxc,ecarrara/lxc,codebauss/lxc,bmoar/lxc,fwilson42/lxc,regit/lxc,cjwatson/lxc,hfuCN/lxc,bostjan/lxc,hkjolhede/lxc,ysbnim/lxc,QingweiPeterLan/cs188-lxc,weizhenwei/lxc,efiop/lxc,lazy404/lxc,GreatFruitOmsk/lxc,JohnPeacockMessageSystems/lxc,ksperis/lxc,terceiro/lxc,ecarrara/lxc,virajs/lxc,ojkastl/lxc_Patches,hallyn/lxc,hkjolhede/lxc,akshaykarle/lxc,szaszg/lxc,Pelagicore/lxc,glensc/lxc,rowhit/lxc,regit/lxc,abstrakraft/lxc-android-lxc,LynxChaus/lxc,ysbnim/lxc,raspberrypython/lxc,rldleblanc/lxc,ioops/lxc,JohnPeacockMessageSystems/lxc,thmo/lxc,codebauss/lxc,JohnPeacockMessageSystems/lxc,caglar10ur/lxc,QingweiPeterLan/cs188-lxc,ioops/lxc,weizhenwei/lxc,rldleblanc/lxc,federicobriata/lxc,christiaan/lxc,akshaykarle/lxc,QingweiPeterLan/cs188-lxc,christiaan/lxc,tych0/lxc,terceiro/lxc,Ponce/lxc,tych0/lxc,raspberrypython/lxc,ojkastl/lxc_Patches,Ponce/lxc,caglar10ur/lxc,fwilson42/lxc,abstrakraft/lxc-android-lxc,glensc/lxc,rowhit/lxc,bmoar/lxc,LynxChaus/lxc,yubo/lxc,GreatFruitOmsk/lxc,smoser/lxc,lisongmin/lxc,bostjan/lxc,Distrotech/lxc,aeris/lxc,bostjan/lxc,ysbnim/lxc,sapun/lxc,virajs/lxc,DarknessBeforeDawn/lxc,lazy404/lxc,ioops/lxc,hkjolhede/lxc,lisongmin/lxc,aeris/lxc,armcc/lxc,christiaan/lxc,regit/lxc,jirislaby/lxc,caglar10ur/lxc,abstrakraft/lxc-android-lxc,raspberrypython/lxc,ss1h2a3tw/lxc,lazy404/lxc,efiop/lxc,aeris/lxc,codebauss/lxc,smoser/lxc,hfuCN/lxc,lisongmin/lxc,virajs/lxc,ojkastl/lxc_Patches,sapun/lxc,bmoar/lxc,terceiro/lxc,Ponce/lxc,weizhenwei/lxc,efiop/lxc,cjwatson/lxc,glensc/lxc,rowhit/lxc,yubo/lxc,sapun/lxc,major/lxc,thmo/lxc,jirislaby/lxc,Distrotech/lxc,ecarrara/lxc,armcc/lxc,ss1h2a3tw/lxc,federicobriata/lxc,ksperis/lxc,szaszg/lxc,major/lxc,ojkastl/lxc_Patches,Pelagicore/lxc,fwilson42/lxc,Distrotech/lxc,smoser/lxc,hfuCN/lxc,major/lxc,hallyn/lxc,akshaykarle/lxc,DarknessBeforeDawn/lxc,tych0/lxc,ksperis/lxc,LynxChaus/lxc,thmo/lxc,szaszg/lxc,GreatFruitOmsk/lxc,hallyn/lxc,rldleblanc/lxc,armcc/lxc,ss1h2a3tw/lxc,jirislaby/lxc,abstrakraft/lxc-android-lxc,federicobriata/lxc,cjwatson/lxc,smoser/lxc,Pelagicore/lxc