title: how to use os.environ as a dictionary value
body: <p>Having some issues creating a dictionzry which should contain an env variable as a value per key.
  It's the single quotes that are causing the problem I guess. Could someone point me to a pythonic way of doing this ? :)</p>
  
  <pre><code>macros = {
     'date': os.environ['NOTIFY_SHORTDATETIME'],
     'hostname': os.environ['NOTIFY_HOSTNAME'],
     'ip': os.environ['NOTIFY_HOSTADDRESS'],
     'alias': os.environ['NOTIFY_HOSTALIAS'],
     'hostcmd': os.environ['NOTIFY_HOSTCHECKCOMMAND'],
     'servicecmd': os.environ['NOTIFY_SERVICECHECKCOMMAND'],
     'servicenotifnum': os.environ['NOTIFY_SERVICENOTIFICATIONNUMBER'],
     'servicedesc': os.environ['NOTIFY_SERVICEDESC'],
     'hostoutput': os.environ['NOTIFY_HOSTOUTPUT'],
     'serviceoutput': os.environ['NOTIFY_SERVICEOUTPUT'],
     'hoststate': os.environ['NOTIFY_HOSTSTATE'],
     'svcstate': os.environ['NOTIFY_SERVICESTATE'],
     'lasthoststate': os.environ['NOTIFY_LASTHOSTSTATE'],
     'laststatesvc': os.environ['NOTIFY_LASTSTATESERVICE'],
     'notiftype': os.environ['NOTIFY_NOTIFICATIONTYPE'],
  }
  </code></pre>