<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def make_application(version, app_name, app_urls, kwargs=None):
 """ Loads the routes and starts the server :param version: the application version :param app_name: the application name :param app_urls: a list of application endpoints :param kwargs: dictionary of options :returns: tornado.web.Application instance """

    if kwargs is None:
        kwargs = {}

    urls = make_endpoints(version, app_name, app_urls, kwargs)
    application = tornado.web.Application(
            urls,
            default_handler_class=kwargs.get('default_handler_class', ErrorHandler))

    return application