Python Check If Array Or String Theory Band