Ok, found the error. I should read the error message more closly. It states module has no attribute. And thats beacuse of name collision. I had a file called stat. Somehow even if I reverted the project the file was still around, don't know why.
Just renamed the file and everything works now again.