fix IPython warning

Signed-off-by: Thomas Hisch <t.hisch@gmail.com>