code: def _is_charge_balanced(struct):
          
          if sum([s.specie.oxi_state for s in struct.sites]) == 0.0:
              return True
          else:
              return False
docs: checks if the structure object is charge balanced