Prevent Python from consuming all input