from Sonar import * p = 3 sonar = ["*", 1, 1, 1, 2, 5, 4, 8, 5] s = Sonar() if s.is3DSonar1DFull(sonar, p): print "Sonar"