Data for a client was imported using this hack/script. Stock and SI data was exported from tally and imported into ERPNext with requirement of docnames being same.
You will have to modify the script for your use/columns. There were many fields missing from Tally Data e.g. Posting time for stock entries
Missing fields had to be added manually/by script.