Sherlock and Array (python)