removed unused import
code formating cleanup
removed unused import
moar unicode gaurds
I was seening IndexErrors occasionally