import typing


def _load_credentials(filepath: str) -> typing.Tuple[str, str]:
    """
    Open the provided filepath and read the credentials from it.

    Expected format is: "EMAIL\nPASSWORD"
    """
    with open(filepath) as file:
        email = file.readline().strip()
        password = file.readline().strip()
    return email, password