Modified gen_rst.py to remove dependency from sklearn.