title: Fastest way to append a string to a text file w/o impact(effect) on web site load time
body: <p>Suppose my web site needs to run this python code <br>
  for everytime it loads..</p>
  
  <pre><code>f = open('/aaa', 'a')
  f.write('test' + '\n')
  </code></pre>
  
  <p>all it does is.. "append" .. "test" to "/a" file.</p>
  
  <p>but perhaps there is a way to run this command without having impact on the web site load time. </p>
  
  <p>perhaps it can be forked ?</p>
  
  <p>but the only way to do that would be to.. use </p>
  
  <pre><code>import os
  os.popen()
  </code></pre>
  
  <p>which sounds like can make things even more heavy.</p>
  
  <p>based on my understanding.. things such as "APACHE".. <br>
   can append lines to files such as error_log at amazing speeds.</p>
  
  <p>and i think i read somewhere that apache actually appends lines to error_log and <br>access_log without even opening those files.</p>
  
  <p>is there a way to do things that way from a python script ?</p>