pythonic way for detect_md5_dup function