if mon_type in ('HTTP', 'HTTPS'):
    stuff.....