list-packages: list packages that satisfy some constrains

I might merge all these pyalpm scripts into one.
Certainly I could put the functionality of orphan-opt here.