repo.py: remove unused os.path import
repo.py: set root properly for pyalpm handle