Python Add Object To Json Php Header Function