RBTools clean-up

This change cleans up a lot of the code to fix trailing whitespace and PEP-8
issues.

Testing done: Ran tests. No more failed than before.