New smooth scrolling function;  remove old Python code.