Check If Variable Is Not None Python