Postgresql Get First Character In String Python Methods