Just an FYI. There are nodes in various packages that allow you to do some very specific parameter value extraction, Take for example the BuiltInParameter name nodes in Archi-lab.net.
Once you have that parameter name, you can easily get the values like so:
This is just an FYI as your approach with writing Python nodes will work as well.