def generate_timestamp(): """generate ISO8601 timestamp incl microsends, but with colons replaced to avoid problems if used as file name """ return datetime.isoformat(datetime.now()).replace(":", "-")