Removing call to python where it is not needed.