I cannot find any example on the net of how the SQLite 3 vacuum command is done on a database.
import sqlite3 con = sqlite3.connect() .. con.execute("VACUUM") ..