Your test at the end is wrong,
__name__
is only equal to
"__main__"
when running interactively, or from the command line. It should be:
if __name__ != "__main__":
Also the print line
print("Choose: Y/N")
should be inside your main function, just before the input request, so the user knows that it is waiting for input.