code adapted for python3; added Cocco data ; u replaces mu