title: Python EOFerror when importing a module after unplugging Raspberry Pi
body: <p>I have a python3.2 script running from rc.local at startup on a raspberry pi - Raspbian OS, it imports a file called <code>inouts.py</code> module that i made and lives in the same directory, ive updated the <code>sys.path.append(...)</code></p>
  
  <p>The script worked fine for weeks.  Today I had to unplug the rpi without shutting down.</p>
  
  <p>After rebooting the script fails to open and gives the error:
  <code>EOFError: EOF read where not expected</code></p>
  
  <p>The <code>inouts.py</code> is definitely the module causing the error as I have it on its own line.</p>
  
  <p>If I change the name from <code>inouts.py</code> to <code>inouts2.py</code> the script works.
  If I run it as python2 it also works.</p>
  
  <p>Can anybody point me in the right direction on what might be causing this filename to cause this error?</p>
  
  <pre><code>Traceback (most recent call last):
  File "rf2.py", line 3, in &lt;module&gt;
  import inouts
  EOFError: EOF read where not expected
  </code></pre>