Output # of ranks, adjusted python scripts