Postgresql Get First Character String Types In Python