def _cell_to_python(cell):
data_type, value = cell.data_type, cell.value<EOL>if type(cell) is EmptyCell:<EOL><INDENT>return None<EOL><DEDENT>elif data_type == "<STR_LIT:f>" and value == "<STR_LIT>":<EOL><INDENT>return True<EOL><DEDENT>elif data_type == "<STR_LIT:f>" and value == "<STR_LIT>":<EOL><INDENT>return False<EOL><DEDENT>elif cell.number_format.lower() == "<STR_LIT>":<EOL><INDENT>return str(value).split("<STR_LIT>")[<NUM_LIT:0>]<EOL><DEDENT>elif cell.number_format.lower() == "<STR_LIT>":<EOL><INDENT>return str(value).split("<STR_LIT:.>")[<NUM_LIT:0>]<EOL><DEDENT>elif cell.number_format.endswith("<STR_LIT:%>") and isinstance(value, Number):<EOL><INDENT>value = Decimal(str(value))<EOL>return "<STR_LIT>".format(value)<EOL><DEDENT>elif value is None:<EOL><INDENT>return "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>return value<EOL><DEDENT>
Convert a PyOpenXL's `Cell` object to the corresponding Python object.