intermediary commit of rewrite

lookup interface is now expert/dumb-friendly
dict has no __cmp__ method
add missing carriage return function,

and boolean fix for enter/escape
boolean fix for enter/escape
boolean fix for enter/escape
improve error log output

by writing in a single loop, so format exception only is breif
debug string fix
newstyle exceptions
new style exceptions, late logger import