Postgres Get Number From String Python W3schools