Regarding libraries the consensus is
- First party libraries are preferred aka the
system.*namespace - Java libraries are second if you cannot work a solution with the first group of functions
- Jython libraries are last espeically anything regarding networking you should 100% not use the jython libraries as there are known issues
Great thread here too with a lot of good info Do's and Don'ts when developing First Project with Ignition?