def _pos_match(pos_tuple):
 if (pos_tuple[0] == 's'):
  pos_tuple = ('a', pos_tuple[1], pos_tuple[2])
 for (n, x) in enumerate(pos_tuple):
  if (x is not None):
   break
 for pt in _pos_tuples():
  if (pt[n] == pos_tuple[n]):
   return pt
 return None

def _pos_match ( pos_tuple ) : if ( pos_tuple [ 0 ] == 's' ) : pos_tuple = ( 'a' , pos_tuple [ 1 ] , pos_tuple [ 2 ] ) for ( n , x ) in enumerate ( pos_tuple ) : if ( x is not None ) : break for pt in _pos_tuples ( ) : if ( pt [ n ] == pos_tuple [ n ] ) : return pt return None
this function returns the complete pos tuple for the partial pos tuple given to it .