<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def WriteVcard(filename, vcard, fopen=codecs.open):
 """Writes a vCard into the given filename."""

    if os.access(filename, os.F_OK):
        logger.warning('File exists at "{}", skipping.'.format(filename))
        return False
    try:
        with fopen(filename, 'w', encoding='utf-8') as f:
            logger.debug('Writing {}:\n{}'.format(filename, u(vcard.serialize())))
            f.write(u(vcard.serialize()))
    except OSError:
        logger.error('Error writing to file "{}", skipping.'.format(filename))
        return False
    return True