title: Is it possible to call a Chrome extension's method using Python?
body: <p>I want to write a Chrome extension which gets the page source and I have found some references (<a href="https://stackoverflow.com/questions/11684454/getting-the-source-html-of-the-current-page-from-chrome-extension">1</a>, <a href="https://stackoverflow.com/questions/10161044/open-a-new-google-chrome-tab-and-get-the-source/10162291#10162291">2</a>) on how to do it. However, the end code that would be using this source is in Python. Is there any way I could write Chrome extension and call its methods in Python?</p>
  
  <p>Note:
  I have tried using Selenium to get browser's source. However, I'm stuck when the page doesn't stop loading. There is a <a href="https://code.google.com/p/selenium/issues/detail?can=2&amp;start=0&amp;num=100&amp;q=&amp;colspec=ID%20Stars%20Type%20Status%20Priority%20Milestone%20Owner%20Summary&amp;groupby=&amp;sort=&amp;id=687" rel="nofollow noreferrer">bug</a> in selenium which prevents it from doing anything if the page doesn't stop loading. The browser doesn't return back to Selenium so I'm trying alternate methods.</p>