added scikit functionality to paintGrid_cmd.py