Python Break Out Of Function