updated production.py