You should always add a shebang! In this case you should add the shebang of python2.7
I can know it's python 2.7 from the the first "print" I see :)
Also, you have too many prints in there! You should refactor that! It'll affect the execution time. → Not only the prints anything else that you used like you did with prints!
I think that it's not a good thing to adopt the "one file" strategy, as it will have too many lines and it will affect the maintenance of the code.
You should always add a shebang! In this case you should add the shebang of python2.7
I can know it's python 2.7 from the the first "print" I see :)
Also, you have too many prints in there! You should refactor that! It'll affect the execution time. → Not only the prints anything else that you used like you did with prints!
I think that it's not a good thing to adopt the "one file" strategy, as it will have too many lines and it will affect the maintenance of the code.
Other PQ are coming..