It is very nice and easy to run Python from the command line. Especially for testing purposes. The only drawback is that after making a change in the script, I have to restart Python, do all the imports over again, create the objects and enter the parameters.
$ python
>>> from foo import bar
>>> from package.file import Class
>>> c = Class
>>> c.name = "John"
>>> c.age = 33
>>> c.function()
>>> from datetime import timedelta, datetime
>>> now = datetime.now().year()
>>> next_year = now + timedelta(year=1)
>>> etc...
Can someone tell me if there is an easier way then doing all the work over and over again every time I make a change in the Python code?