changed md5sum calculation to python