Return command result only inside of IPython