Did you add the if-clause protection to your script?
This is necessary if you are using Windows and multiple workers in your DataLoader:
def main():
   # your code

if __name__ == '__main__':
    main()