This works, but maybe more elegant (if less direct) to do something like:

    for inst in ('js', 'css', 'html'):
        cur = locals()[inst]
        if isinstance(cur, basestring):
            locals[][inst] = [cur]