[python] add legacy deps. loading as fallback when running standalone script

This was always an unintentional side effect of #5201. A couple of addons depends on this old behavior, so no problem adding backwards compatibility and warn instead.