title: How to add attributes in input element with Beautifulsoup
body: <p>I use BeautifulSoup to find a specific element on my html page.
  I want to add an attribute "value" to this element and save it to the original html. 
  How can I do this with Beautifulsoup? Right now I do this to get the whole html and find the specific element:</p>
  
  <pre><code>static_map = opener.open('my_url')
  bs = BeautifulSoup(static_map.read())
  title = bs.find("input", {"name":"title"})
  </code></pre>
  
  <p>The title looks like:</p>
  
  <pre><code>&lt;input class="has-popover form-control" data-container="body" id="id_title" maxlength="255" name="title" type="text"/&gt;
  </code></pre>
  
  <p>I want to add in this input element the attribute: value 
  and then save it to the initial html.</p>
  
  <p>Then I will have to send this as a post request.</p>