invent with python, games -- codes