python27 compatibility + representation