Python utility to rename files and update associated database