Fix issue with multiple response_body_commands; code cleanup, PEP8