I don't see what "Hungarian" has to do with it, and, though I do see what "Stalinist" might have to do with it, it probably shouldn't. (Someone's politics don't have to be good for them to make a valuable contribution to knowledge.) But, according to Wikipedia, this isn't true literally as written, unless one takes the view "once a Stalinist, always a Stalinist:"
> After his release, Lakatos returned to academic life .... Still nominally a communist, his political views had shifted markedly, and he was involved with at least one dissident student group in the lead-up to the 1956 Hungarian Revolution.
> ... He received a PhD in philosophy in 1961 from the University of Cambridge; his doctoral thesis was entitled Essays in the Logic of Mathematical Discovery, and his doctoral advisor was R. B. Braithwaite. The book Proofs and Refutations: The Logic of Mathematical Discovery, published after his death, is based on this work.