Separado will give you the option to slice lines from main .py file and save them in new .py file.
Download the .bat and .py from Releases Place 2 files in folder you want the new files to be generated to Drag and drop your full .py file unto bat file and follow instructions. *for separating in one go your homework/wanted areas must be marked in the beginnig with #$file_name and end with #$end
*if you want add/change the code feel free to contribute <3.