Backing up a database with Python