@staticmethod
def write_bool(value, file):
    """
        Writes a boolean as a field to a CSV file.

        :param bool value: The boolean.
        :param T file: The file.
        """
    if value:
        file.write('1')
    else:
        file.write('0')
