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