removed directory input and python chech, simplified script