def parallel_gen_binnedlc_pkls(binnedpkldir,<EOL>textlcdir,<EOL>timebinsec,<EOL>binnedpklglob='<STR_LIT>',<EOL>textlcglob='<STR_LIT>'):
binnedpkls = sorted(glob.glob(os.path.join(binnedpkldir, binnedpklglob)))<EOL>textlcs = []<EOL>for bpkl in binnedpkls:<EOL><INDENT>objectid = HATIDREGEX.findall(bpkl)<EOL>if objectid is not None:<EOL><INDENT>objectid = objectid[<NUM_LIT:0>]<EOL><DEDENT>searchpath = os.path.join(textlcdir, '<STR_LIT>' % (objectid, textlcglob))<EOL>textlcf = glob.glob(searchpath)<EOL>if textlcf:<EOL><INDENT>textlcs.append(textlcf)<EOL><DEDENT>else:<EOL><INDENT>textlcs.append(None)<EOL><DEDENT><DEDENT>
This generates the binnedlc pkls for a directory of such files.

FIXME: finish this