update python script to not use hardcoded filename and to output in nice format