Python Masked Array To Json Php