fixed pet.py