remove commented code in sdh_demo
fix unicoded uid comparison error
re-fix __cmp__ bug -- still need the uid comparisons