human
Complete this python program:
def create_python_container(test_case, cluster, parameters, script, cleanup=True, additional_arguments=()):
assistant
#Here is the Python program you requested.

    """Create a Python container that runs a given script.
    :param TestCase test_case: The current test.
    :param Cluster cluster: The cluster to run on.
    :param dict parameters: Parameters for the ``create_container`` JSON
    query, beyond those provided by this function.
    :param FilePath script: Python program to run.
    :param bool cleanup: If true, remove container when test is over.
    :param additional_arguments: Additional arguments to pass to the
    script.
    :return: ``Deferred`` that fires when the configuration has been updated.
    """
    parameters = parameters.copy()
    parameters[u'image'] = u'python:2.7-slim'
    parameters[u'command_line'] = ([u'python2.7', u'-c', script.getContent().decode('ascii')] + list(additional_arguments))
    if (u'restart_policy' not in parameters):
        parameters[u'restart_policy'] = {u'name': u'never'}
    if (u'name' not in parameters):
        parameters[u'name'] = random_name(test_case)
    creating = cluster.create_container(parameters)
    def created(response):
        if cleanup:
            test_case.addCleanup(cluster.remove_container, parameters[u'name'])
        test_case.assertEqual(response, parameters)
        return response
    creating.addCallback(created)
    return creating