old_contents: """
  Director specific funcationality
  """
  from genericdirector import GenericDirector
  from modules.ldirectord import Ldirectord
  # from ldirectord import Ldirectord
  from modules.keepalived import Keepalived
  # from keepalived import Keepalived
  
  class Director(object):
      """
      Factory class that returns a director object based on the name provided
      """
      directors = {'generic': GenericDirector,
                   'ldirectord': Ldirectord,
                   'keepalived': Keepalived}
  
      def __new__(self, name, ipvsadm, configfile='', restart_cmd='', nodes=''):
          if name != 'ldirectord' and name != 'keepalived':
              name = 'generic'
          return Director.directors[name](ipvsadm, configfile, restart_cmd, nodes)
new_contents: """
  Director specific funcationality
  """
  from genericdirector import GenericDirector
  from modules.ldirectord import Ldirectord
  from modules.keepalived import Keepalived
  
  class Director(object):
      """
      Factory class that returns a director object based on the name provided
      """
      directors = {'generic': GenericDirector,
                   'ldirectord': Ldirectord,
                   'keepalived': Keepalived}
  
      def __new__(self, name, ipvsadm, configfile='', restart_cmd='', nodes=''):
          if name != 'ldirectord' and name != 'keepalived':
              name = 'generic'
          return Director.directors[name](ipvsadm, configfile, restart_cmd, nodes)
subject: clean up of imports