Actor-turned-White House aide Kal Penn was the brains behind President Barack Obama's appearance at the Oscars - the leader featured, via video message, in a segment about the best movie song.