Function To Exit Python Interactive Mode