from datetime import datetime


def filename_now(sep="-"):
    """
    Returns the current date and time in iso format suitable for filename.
    """
    now = datetime.now().isoformat(sep=sep, timespec="seconds")
    return now.replace(":", sep)