Rearranged all truthtable specific code into tt.py