[Python-Dev] Convert Sqlite Function from cx_Oracle