Replaced tuple.index calls with list.index calls for compatiblity with
python 2.5.
Made printing enhanced_print keys an option.