PerlCyc and JavaCyc can be used to access internal Pathway Tools functions by Perl and Java scripts. The two packages were originally developed by TAIR, and are currently maintained by the SGN (Sol Genomics Network).
Please contact Lukas Mueller (lam87_at_cornell.edu) at the SGN with any questions.