Complex sentence: He had about 50 sessions with Barjatya while the film's script was being written for finalizing the music and recording of all songs took 3 months.
Split into simpler sentences: He had about 50 sessions with Barjatya. The finishing of the script and finalizing the music and recording of all songs took 3 months.