title: Extract the SHA1 hash from a torrent file
body: <p>I've had a look around for the answer to this, but I only seem to be able to find software that does it for you. Does anybody know how to go about doing this in python?</p>