csra.py , rewrite of crazy.py