code: def pushnotify(subject, message, api="pushover", priority=0, timestamp=None):
      
      import types
      assert type(priority) is int and -1 <= priority <= 2, \
              "Priority should be and int() between -1 and 2"
  
      cfgfile = op.join(op.expanduser("~"), "pushnotify.ini")
      Config = ConfigParser()
      if op.exists(cfgfile):
          Config.read(cfgfile)
      else:
          sys.exit("Push notification config file `{0}`".format(cfgfile) + \
                   " does not exist!")
  
      if api == "pushover":
          cfg = ConfigSectionMap(Config, api)
          token, key = cfg["token"], cfg["user"]
          pushover(message, token, key, title=subject, \
                  priority=priority, timestamp=timestamp)
      elif api == "nma":
          cfg = ConfigSectionMap(Config, api)
          apikey = cfg["apikey"]
          nma(message, apikey, event=subject, \
                  priority=priority)
      elif api == "pushbullet":
          cfg = ConfigSectionMap(Config, api)
          apikey, iden = cfg["apikey"], cfg['iden']
          pushbullet(message, apikey, iden, title=subject, \
                  type="note")
docs: Send push notifications using pre-existing APIs
  
      Requires a config `pushnotify.ini` file in the user home area containing
      the necessary api tokens and user keys.
  
      Default API: "pushover"
  
      Config file format:
      -------------------
          [pushover]
          token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
          user: yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
  
          [nma]
          apikey: zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
  
          [pushbullet]
          apikey: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
          iden: dddddddddddddddddddddddddddddddddddd