Updated active.py