Stevie May came back to haunt his former club as he netted two goals in St Johnstone's comfortable 3-0 win over Hamilton in the Scottish League Cup.