def initialize_hashes(self):
        """Create new hashlib objects for each hash we are going to calculate."""
        if ('md5' in self.hashes):
            self.md5_calc = hashlib.md5()
        if ('sha-1' in self.hashes):
            self.sha1_calc = hashlib.sha1()
        if ('sha-256' in self.hashes):
            self.sha256_calc = hashlib.sha256()
Create new hashlib objects for each hash we are going to calculate.