Python Masked Array To Json In Php