Seems that the general fix is to move the import of the FoamFileGenerator in DataStructures to the back of the file (this actually makes sense if you understand what Python does during importing)

Fix will be in the next release