Made file importable as module or executable as a script