Create mid.py

Cant for some reason edit main file..

Here I did some modification of it.