new method added to get python location