Pop up when calling "BlockEdit" in python script

Calling BlockEdit command from a Python script results in this warning. Is there any workaround to avoid it?

image

import rhinoscriptsyntax as rs
rs.Command("BlockEdit")

@JohnM - is this something you can help with?