solutions for https://wiki.python.org/moin/ProblemSets/99%20Prolog%20Problems%20Solutions and other python questions