OK.  

What styling would you suggest for adding a (potentially multi-line) comment that explains the high-level intended meaning of the if/elif check?  Perhaps adding comments just below the `elif`, with a single line-break before any code starts (to indicate that the comment is not associated with the next line, but with the elif statement?

Let me know if you had a particular styling in mind; I often comment on if/elif to try and clarify the goal of the check.