in 1959 settled in havana and , seeing the way the wind blew , while remaining ostensibly a batista man , began working undercover for the castro party , and after the revolution , obtained an influential post as foreign `` enforcer '' for the d.s.s .