For Loop Through A String Python Functions