Ah i found finally the correct location to look at:
Here the docstring says, that only other python files are copied, from that flyte tasks are imported. since data.py had a data processing task, but of course the types.py file did not, that one seems to be ignored? I am not clear on why not all imported files are copied over? In which case can other files be imported that are not needed at remote side? They will always produce an import error, so it seems a bit strange, this selection?