Json Stringify Key Value Array Python Memory