def align_timestamp(timestamp, step):
    """Adjusts 'timestamp' down to a multiple of 'step' size.

    Args:
      timestamp: int, timestamp in seconds since the epoch.
      step: int, interval to align.

    Returns:
      int, timestamp adjusted to multiple of step.
    """
    return timestamp - (timestamp % step)