import hashlib


def calculate_file_hash(filename):
    """ Calculate MD5 check-sum for given file

    Args:
        filename: Location of file

    Returns:
        str: MD5 check-sum
    """
    with open(filename, 'rb') as file:
        return hashlib.md5(file.read()).hexdigest()