A few little imporvements.

Hi, i'm /u/SurviAvi from Reddit who gave you the Gits tip yesterday.

I added a few little improvements (syntax and logical) to you code and comments explaining what you did in order for you to understand it and be able to use it yourself.

If you have any questions feel free to ask me.
in the meantime enjoy python and I hope you will learn allot.

( Gist's are also useful if I would like to imporve something, but didn't want to create a own repository. I will delete my fork of your project in a few days, so be sure to take a look at it. )