Similar to how you referred to the top-level 'configuration' tag in the Junos namespace as "junos__configuration", you can do "junos__from" instead of just "from". You can even similarly 'qualify' every tag in the path, if you really want to. ie, your path above can also be written as
Note that the last tag (protocol) is missing in your Maagic example.
Finally, 'protocol' seems to be a leaf-list, and you cannot index the elements of a leaf-list maagic - so, doing "protocol['bgp']" would result in an error. You can access the elements of a leaf-list by iterating over that element. So, something like
protocol = <the path above>..
for elem in protocol: