title: SublimeText: plugin to copy variable import declaration?
body: <p>I have this use-case that happens often in my django dev daily life : I want to execute a piece of code taken from my app into <a href="https://django-extensions.readthedocs.io/en/latest/shell_plus.html" rel="nofollow noreferrer"><code>shell_plus</code></a></p>
  
  <p>For example this queryset :</p>
  
  <pre><code>bookings_sent = Mail.objects.filter(_type=cts_mail.MailId.GIVE_MONEY).filter(
      booking__in=bookings).values_list('booking', flat=True)
  </code></pre>
  
  <p>So I copy the line in <code>shell_plus</code> and press <kbd>Enter</kbd> but then the shell rightfully yells because of undefined <code>cts_mail</code> variable.
  I have to find the import at the top of the file and paste it into the shell, then it yells for another constant, yadda yadda yadda...</p>
  
  <p><strong>Ideally, I'd like to select in ST3 the lines I want to execute in the shell and do a right-click <em>"Prepend required imports"</em> so the imports appear right on top of my selection and i can copy the whole block to <code>shell_plus</code> in one swoop.</strong> </p>