Quick and dirty fix to make it work for both python-apt 0.8 and 0.9