add represent.py script
add fix for multi-ward reps