The only way to get non-partisan would be elect panel to oversee the administration of an office, and let each major party with 30% or more in office have equal # of votes. Like picking teams for school sports. It'll end up 50/50. Let the speaker of the house be the deciding vote for ties.

Judges shouldn't be appointed by the fed but be randomized by computers for a database of vetted lawyers/judges who could assume the role, and all federal judges only serve for the case they're called in for (basically reverse jury duty).