fixed issue 1607:NamedTemporaryFile broke GAE, thanks Alan
fixed linked tables again