python wrapper script. also borrowed from rfw.
clean before building other targets.