Fixed for loop port listing bug
Minor ipython build changes