Change made to call to calc.py. Changed directory name, from directory[18:] to directory[-5:]. This will work as long as the directory structure i.e object naming convention remains consistent or we have less than 100 targets :D.