Set Empty Array Postgresql Format Function In Python 3