Python Check If Array Or String Duper