activity.py fixed