Sqlite User Defined Functions In Python