Fixing some bugs with ipython creation in python3 and some issues with creating namespaces

...a namespace issue being created and importing in lttools in the toModule function creating a blank namespace with the file name to connect to the popen ipython process. This way the file does not have to be run and imported if it is not fully complete or there are bugs, which would cause the import to fail.