def parse_updates(rule):
 rules = shlex.split(rule)
 rules.pop(0)
 if (len(rules) > 0):
  return {'url': rules[0]}
 else:
  return True

def parse_updates ( rule ) : rules = shlex . split ( rule ) rules . pop ( 0 ) if ( len ( rules ) > 0 ) : return { 'url' : rules [ 0 ] } else : return True
parse the updates line .