pacman in python.
but could optimize