final edit of the python