#python for theorem proving