Impplemented fixings to bat file and python scipt.