First version of crab.py