I know you can use PHP since it has both MySQL and SQLite extensions, and I would be surprised if Python could not do it just as easily. However, I do not off-hand know of any ready-made scripts, but then I've never yet had reason to look for one or write my own.
Sorry if that's not a lot of help, but at least it should tell you that your goal is attainable. 