A Two-Phase flow model for Geothermal Wells in the Presence of Non-Condensable Gas