Python Masked Array To Json Postgresql