Python Check If Variable Is Not Declared