How to reduce errors in dynamic language such as python, and improve my code quality？
<p>I've always have trouble with dynamic language like Python.</p>

<p><strong>Several troubles</strong>:</p>

<ol>
<li>Typo error, I can use pylint to reduce some of these errors. But there's still some errors that pylint can not figure out.</li>
<li>Object type error, I often forgot what type of the parameter is, int? str? some object? Also, forgot the type of some object in my code.</li>
</ol>

<p>Unit test might help me sometimes, but I'm not always have enough time to do UT. When I need a script to do a small job, the line of code are 100 - 200 lines, not big, but I don't have time to do the unit test, because I need to use the script as soon as possible. So, many errors appear.</p>

<p>So, any idea on how to reduce the number of these troubles?</p>
