Some optimizations here and there

Nothing extraordinary. Reduction of codes, a bit of renaming. Not
mandatory to merge. But it helped me to get through the code. :)
whoops, small syntax error here: `{'body' = get_issue_body(json_data)` should probably be `{'body': get_issue_body(json_data)`, etc. Can you fix and then I'll merge?