Example Based Feature Extraction Python Code