remove use of QString in favor of python unicode strings; also fix some whitespaces