Python Program Using String Functions In Mysql