Patch for learn.py to use the new python twitter api

Thanks again @celestialbeard