renameing open.py to portal.py