Added getAll method to prepa.py