fixed for python-apt 0.8 (debian wheezy)

python-apt 0.8:
  "The old API that was deprecated in 0.7.100 is no longer available."