def encode(self, value):
        return ('0','1')[value]
Converts a python boolean into a string '1'/'0' for storage in SimpleDB.
dataset/ETHPy150Open saymedia/python-simpledb/simpledb/models.py/BooleanField.encode