Tidy up existing source code

Nothing major in this really, just a general tidy up

* Remove mutable arg from put_wall_post
* Replace concatenation with formatted strings
* Replace variables that match builtins with non conflicting names
* Re-indent
* Removed redundant parenthesis
* Restructured exception data in request, so that the method signature correctly matches