This is a Makefile I use in a lot of my python projects. It's pretty handy.
First create a virtualenv and install some basic requirements.
make init
Then run your python code.
make
You can run unit tests with or without line coverage.
make test
make coverage