def METHOD_NAME(python_file, contents):
    logger.info('Writing Python File: {0:s}'.format(python_file))
    with closing(open(python_file, 'w')) as f:
        for resource in contents:
            f.write('{0:s}\n'.format(resource))
    return