moved get_ipython_cmd into separate function
use new get_ipython_cmd functionality
pass repr of a list on command line