Change a filename?
<p>I have some files in a folder named like this <code>test_1999.0000_seconds.vtk</code>. What I would like to do is to is to change the name of the file to <code>test_1999.0000.vtk</code>.</p>

<p>You can use <a href="https://docs.python.org/2/library/os.html#os.rename" rel="nofollow"><code>os.rename</code></a></p>

<pre><code>os.rename("test_1999.0000_seconds.vtk", "test_1999.0000.vtk")
</code></pre>

python