The easiest way is to go into an existing league, then export the players, then use the mod tools to convert the .json file into .csv and then look at how they come out to build a new .csv with existing players.
The tool is at:
viewtopic.php?f=268&t=28565I would also post in the mod forum for CF that you're working on this. May be some other folks willing to help.