python 2.x compatible and pep8 compatible
Minor changes in combinational.py to include tristate condition