Python Write Text Array To Json Postgresql Install