Python Check If Variable Contains String Method