added if name == ... guard to final print stmt in the python solutions