Create an interactive command-line menu using Python

http://www.bggofurther.com/2015/01/create-an-interactive-command-line-menu-using-python/