Added a helper python script to debug cref