How to convert Nonetype to int or string?,int(0 if value is None else value)