Lots of Python improvements:

- Removed empty exception.
- Changed map and filter to use the itertool versions.
- Changed a lambda split to use methodcaller.
- Changed a string appending process to a substituion process, usually
  faster.
- Changed a for loop to dictionary call with a generator.
- Changed calling the sort method to calling the sorted built-in
  function, generally its better performance.
- Changed lambda creations from being within a filter function to being
  outside, thus only happening once.