fixed uid utility
pyflakes cleanup
finisched implementation of alternative handlers
fixed the to_uid handler