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