Continue Outside Loop Python Command To Open