Postgresql Array Functions Python Code Generator