add the inv.py script to generate a .inv file
note that a filename can be passed