final.py is working fine