Python solutions to:  https://sites.google.com/site/prologsite/prolog-problems