I cloned a github repo using !git clone https://github.com/llSourcell/Pokemon_GAN.git. I wanted to modify a .py file inside Colab. So i used %load fil
Colab includes a text editor you can use to create, open, and delete .py files directly.
All is done in the Files view (see below).