Whitespace cleanup

Reflowed some indents to reduce enormous indents
Fixed some outright wrong indents
Reordered keyword args in forms to be consistent
Fixed dict whitespace