encapsulating main code in __main__ check
putting every root level code behind __main__ check