Don't rely on sqlite's weak typing--use the pickle module instead--but provide the option to disable it for in case of less than wholly trustworthy databases.
style