Javascript Json To Key Value Array Python Practice