I think that I would prefer:
<pre>
md5sum = opts.get('md5sum', None)
</pre>
That way you can also remove the line above putting md5sum to None.