Postgresql Regular Expression Functions In Python