old_contents: #!/usr/bin/python2
  import lala
  import ConfigParser
  import sys
  
  def main():
      """Main method"""
      config = ConfigParser.SafeConfigParser()
      config.read("config")
      lalaconfig = config._sections["lala"]
      if "-d" in sys.argv:
          debug = True
      else:
          debug = False
      if "nickserv_password" in lalaconfig:
          nickserv_password = lalaconfig["nickserv_password"]
      else:
          nick
      nickserv_password = lalaconfig["nickserv_password"] if "nickserv_password"\
              in lalaconfig else None
      plugins = lalaconfig["plugins"].split(",")
      bot = lala.Bot(
              server=lalaconfig["server"],
              admin=lalaconfig["admin"],
              port=int(lalaconfig["port"]),
              nick=lalaconfig["nick"],
              channel=lalaconfig["channel"],
              debug=debug,
              plugins=plugins,
              nickserv = nickserv_password
              )
      #try:
      bot.mainloop()
      #except RuntimeError, e:
          #print e
  
  if __name__ == '__main__':
      main()
  
new_contents: #!/usr/bin/python2
  import lala
  import ConfigParser
  import sys
  
  def main():
      """Main method"""
      config = ConfigParser.SafeConfigParser()
      config.read("config")
      lalaconfig = config._sections["lala"]
      if "-d" in sys.argv:
          debug = True
      else:
          debug = False
      nickserv_password = lalaconfig["nickserv_password"] if "nickserv_password"\
              in lalaconfig else None
      plugins = lalaconfig["plugins"].split(",")
      bot = lala.Bot(
              server=lalaconfig["server"],
              admin=lalaconfig["admin"],
              port=int(lalaconfig["port"]),
              nick=lalaconfig["nick"],
              channel=lalaconfig["channel"],
              debug=debug,
              plugins=plugins,
              nickserv = nickserv_password
              )
      #try:
      bot.mainloop()
      #except RuntimeError, e:
          #print e
  
  if __name__ == '__main__':
      main()
  
subject: Remove that ... awkward... code