The prime minister has been considering his political future after Andy Burnham's by-election victory last week.