title: Can't import StreamListener
body: <p>I'm trying to create a data stream in Python using the Twitter API, but I'm unable to import the <code>StreamListener</code> correctly.</p>
  <p>Here's my code:</p>
  <pre><code>import tweepy
  from tweepy import Stream
  from tweepy.streaming import StreamListener
  
  class MyListener(StreamListener):
   
      def on_data(self, data):
          try:
              with open('python.json', 'a') as f:
                  f.write(data)
                  return True
          except BaseException as e:
              print(&quot;Error on_data: %s&quot; % str(e))
          return True
   
      def on_error(self, status):
          print(status)
          return True
   
  twitter_stream = Stream(auth, MyListener())
  twitter_stream.filter(track=['#python'])
  </code></pre>
  <p>And I'm getting this error:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;c:\Users\User\Documents\GitHub\tempCodeRunnerFile.python&quot;, line 6, in &lt;module&gt;
      from tweepy.streaming import StreamListener
  ImportError: cannot import name 'StreamListener' from 'tweepy.streaming' (C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\tweepy\streaming.py)
  </code></pre>