The block will be only when the .py file is executed as a script. If the .py file is imported this part wouldnt be eecuted. Good for examples 
From http://stackoverflow.com/questions/419163/what-does-if-name-main-do