Example Based Feature Extraction Python