Update dota2.py

Made this really simple and working as functions to make it easy for other to change and update