'Compute MD5 hash of file.'

def file_md5(self, file_name):

    file_contents = self._read_file(file_name)
    file_contents = (file_contents + u'\n')
    file_contents = file_contents.encode(u'UTF-8')
    return hashlib.md5(file_contents).hexdigest()
