Restored original process.py. Doing a transaction for each package was a bad idea