When I export the text file from openproject() it works fine and exported the text file but when I export from other fn such as openuser() its show NameError: free variable