You can use TNY4 to replace the TNY3 without modify anything. The only thing you need to pay attention for TNY3 and TNY4 is always using 0.1uF ceramic cap between BP pin and primary return for noise decoupling. The 0.1uF cap is even more important for TNY4