Good job. I encountered the same issue as several before me when trying to fit and predict tensorflow models in a loop. Your tool safed me, but unfortunately does not support thread safety. I fixed that by using temp directories instead of using your higher identifier logic, but have not been able to push my fix to your repo.