Working now. added ipython interactive to classify function