Here's a maybe-not-so-crazy theory about Comey: he genuinely believed, based on the evidence of Hillary's private email server and the lax security practices around it, that she presented a danger to information security at the State Department and, potentially, the White House. Whereas with Trump, the more damning stuff connecting his campaign to Russia did not emerge until after the election. In which case, yes, Comey did violate the Hatch Act to act against one presidential nominee and allow an actually dangerous one into the White House, but did so because, at the time, the more conclusive evidence was around Clinton and not Trump. I don't think that makes him an agent of Trump or even necessarily an anti-Clinton partisan, just incredibly short-sighted.