python: prepares for closed-way problem solving