A new (computer-friendly) approach to Morse--Novikov theory