Small fixes and improvements
- autopep8ing the xeputils
- fixing the sorting of the errorlist
- making the formating of the errorlist separate from the printing, so it can
be used to include in a mail for example.