Refactor code, to be more cleaner and more robust.
If fullname can't be looked up use userid. re #22

Better PEP8 cleanups.