`mc == 'on'` should be in front. can we settle on the following?
~~~~python
request.MOBILE = (mc == 'on' or 
    (mc != 'off' and self.USER_AGENTS.search(ua)))
~~~~