Well, found out a solution, asked someone else how to solve this and the solution was on the file_packager.py on the tools folder of Emscripten, change the line:
from: attrs = ctypes.windll.kernel32.GetFileAttributesW(unicode(filepath))
to: attrs = ctypes.windll.kernel32.GetFileAttributesW( filepath )