Python Check If Input Is Not Empty