Maybe http://pcgen.org has something you can use. It uses openjdk on linux to run and certainly works on windows. It will run from g.u.i. in linux but apparently not the command line and has python source code behind it. --