Class emerged as a subtext during Barack Obama’s failed attempt to unseat an incumbent congressman on the South Side of Chicago.