from invoke import run, task

@task
def test():
    run("python tests/TestNgramLM.py")

from invoke import run, task

@task
def test():
    run("python tests/TestNgramLM.py")

@task
def clean():
    run("rm *.pyc *~")

Add clean task to tasks.py