from pub import run

for cmd in ["python", "pip", "ls", "rm"]:
    exec """
def %s(cmd, *args, **kwargs):
    return run("%s %%s" %% cmd, *args, **kwargs)""" % (cmd, cmd)

from pub import run

for cmd in ["python", "pip", "ls", "rm", "nosetests"]:
    exec """
def %s(cmd, *args, **kwargs):
    return run("%s %%s" %% cmd, *args, **kwargs)""" % (cmd, cmd)

add a nosetests shortcut