Check if file is there and if the md5_hash is correct.

def is_file_consistent(local_path_file, md5_hash):
    """Check if file is there and if the md5_hash is correct."""
    return os.path.isfile(local_path_file) and \
        hashlib.md5(open(local_path_file, 'rb').read()).hexdigest() == md5_hash