added rei object to pest.py