Oracle Sql Check Length Of String In Python