Adding all the python codes