Use find_magic and run_line_magic for calling magics