Invent with python