human
Complete this python program:
def error_check_python_modules():
assistant
#Here is the Python program you requested.

    """Import settings modules in settings. This will raise exceptions on
    pure python-syntax issues which are hard to catch gracefully with
    exceptions in the engine (since they are formatting errors in the
    python source files themselves). Best they fail already here
    before we get any further.
    """
    from django.conf import settings
    def _imp(path, split=True):
        'helper    method'
        (mod, fromlist) = (path, 'None')
        if split:
            (mod, fromlist) = path.rsplit('.', 1)
        __import__(mod, fromlist=[fromlist])
    from evennia.server import deprecations
    try:
        deprecations.check_errors(settings)
        deprecations.check_warnings(settings)
    except DeprecationWarning as err:
        print(err)
        sys.exit()
    _imp(settings.COMMAND_PARSER)
    _imp(settings.SEARCH_AT_RESULT)
    _imp(settings.CONNECTION_SCREEN_MODULE)
    for path in settings.LOCK_FUNC_MODULES:
        _imp(path, split=False)
    from evennia.commands import cmdsethandler
    if (not cmdsethandler.import_cmdset(settings.CMDSET_UNLOGGEDIN, None)):
        print('Warning:    CMDSET_UNLOGGED    failed    to    load!')
    if (not cmdsethandler.import_cmdset(settings.CMDSET_CHARACTER, None)):
        print('Warning:    CMDSET_CHARACTER    failed    to    load')
    if (not cmdsethandler.import_cmdset(settings.CMDSET_PLAYER, None)):
        print('Warning:    CMDSET_PLAYER    failed    to    load')
    _imp(settings.BASE_PLAYER_TYPECLASS)
    _imp(settings.BASE_OBJECT_TYPECLASS)
    _imp(settings.BASE_CHARACTER_TYPECLASS)
    _imp(settings.BASE_ROOM_TYPECLASS)
    _imp(settings.BASE_EXIT_TYPECLASS)
    _imp(settings.BASE_SCRIPT_TYPECLASS)