def _sid_subdir_path(sid):
 padded_sid = format(sid, '06')
 return os.path.join(padded_sid[0:2], padded_sid[2:4], '{0}.bcolz'.format(str(padded_sid)))

def _sid_subdir_path ( sid ) : padded_sid = format ( sid , '06' ) return os . path . join ( padded_sid [ 0 : 2 ] , padded_sid [ 2 : 4 ] , '{0}.bcolz' . format ( str ( padded_sid ) ) )
format subdir path to limit the number directories in any given subdirectory to 100 .