If you are using ipython, you can configure it to load scripts automatically for you.
Run
$ ipython profile create
which will create default profile in your home directory.
Create a file called ~/.ipython/ipython_init.py
and add
import datetime
today = datetime.datetime.today
Now at the end of ~/.ipython/profile_default/ipython_config.py
, add this line so that it will load that file every time interpreter starts
c.InteractiveShellApp.exec_files = ['~/.ipython/ipython_init.py']
Next time when you launch ipython shell, you can access those variables.
In [1]: today
Out[1]: datetime.datetime(2017, 3, 2, 13, 31, 26, 776744)