Index: trunk/src/C/log.h
===================================================================
--- trunk/src/C/log.h	(revision 300)
+++ trunk/src/C/log.h	(revision 300)
@@ -0,0 +1,212 @@
+/*
+*         OpenPBS (Portable Batch System) v2.3 Software License
+*
+* Copyright (c) 1999-2000 Veridian Information Solutions, Inc.
+* All rights reserved.
+*
+* ---------------------------------------------------------------------------
+* For a license to use or redistribute the OpenPBS software under conditions
+* other than those described below, or to purchase support for this software,
+* please contact Veridian Systems, PBS Products Department ("Licensor") at:
+*
+*    www.OpenPBS.org  +1 650 967-4675                  sales@OpenPBS.org
+*                        877 902-4PBS (US toll-free)
+* ---------------------------------------------------------------------------
+*
+* This license covers use of the OpenPBS v2.3 software (the "Software") at
+* your site or location, and, for certain users, redistribution of the
+* Software to other sites and locations.  Use and redistribution of
+* OpenPBS v2.3 in source and binary forms, with or without modification,
+* are permitted provided that all of the following conditions are met.
+* After December 31, 2001, only conditions 3-6 must be met:
+*
+* 1. Commercial and/or non-commercial use of the Software is permitted
+*    provided a current software registration is on file at www.OpenPBS.org.
+*    If use of this software contributes to a publication, product, or
+*    service, proper attribution must be given; see www.OpenPBS.org/credit.html
+*
+* 2. Redistribution in any form is only permitted for non-commercial,
+*    non-profit purposes.  There can be no charge for the Software or any
+*    software incorporating the Software.  Further, there can be no
+*    expectation of revenue generated as a consequence of redistributing
+*    the Software.
+*
+* 3. Any Redistribution of source code must retain the above copyright notice
+*    and the acknowledgment contained in paragraph 6, this list of conditions
+*    and the disclaimer contained in paragraph 7.
+*
+* 4. Any Redistribution in binary form must reproduce the above copyright
+*    notice and the acknowledgment contained in paragraph 6, this list of
+*    conditions and the disclaimer contained in paragraph 7 in the
+*    documentation and/or other materials provided with the distribution.
+*
+* 5. Redistributions in any form must be accompanied by information on how to
+*    obtain complete source code for the OpenPBS software and any
+*    modifications and/or additions to the OpenPBS software.  The source code
+*    must either be included in the distribution or be available for no more
+*    than the cost of distribution plus a nominal fee, and all modifications
+*    and additions to the Software must be freely redistributable by any party
+*    (including Licensor) without restriction.
+*
+* 6. All advertising materials mentioning features or use of the Software must
+*    display the following acknowledgment:
+*
+*     "This product includes software developed by NASA Ames Research Center,
+*     Lawrence Livermore National Laboratory, and Veridian Information
+*     Solutions, Inc.
+*     Visit www.OpenPBS.org for OpenPBS software support,
+*     products, and information."
+*
+* 7. DISCLAIMER OF WARRANTY
+*
+* THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. ANY EXPRESS
+* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT
+* ARE EXPRESSLY DISCLAIMED.
+*
+* IN NO EVENT SHALL VERIDIAN CORPORATION, ITS AFFILIATED COMPANIES, OR THE
+* U.S. GOVERNMENT OR ANY OF ITS AGENCIES BE LIABLE FOR ANY DIRECT OR INDIRECT,
+* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
+* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*
+* This license will be governed by the laws of the Commonwealth of Virginia,
+* without reference to its choice of law rules.
+*/
+
+/*
+ * include file for error/event logging
+ */
+
+#ifndef LOG_H
+#define LOG_H
+
+#define LOG_BUF_SIZE  16384
+
+/* The following macro assist in sharing code between the Server and Mom */
+#define LOG_EVENT log_event
+
+/*
+** Set up a debug print macro.
+*/
+#ifdef NDEBUG
+#define DBPRT(x)
+#else
+#define DBPRT(x) printf x;
+#endif  /* END NDEBUG */
+
+#if SYSLOG
+#include <syslog.h>
+#endif /* SYSLOG */
+
+#if !SYSLOG
+/* define syslog constants that can be used in code regardless of whether we
+ * are using syslog or not! */
+
+#ifndef LOG_EMERG
+#define LOG_EMERG 1
+#endif
+
+#ifndef LOG_ALERT
+#define LOG_ALERT 2
+#endif
+
+#ifndef LOG_CRIT
+#define LOG_CRIT 3
+#endif
+
+#ifndef LOG_ERR
+#define LOG_ERR 4 
+#endif
+
+#ifndef LOG_ERR
+#define LOG_ERR 5 
+#endif
+
+#ifndef LOG_WARNING
+#define LOG_WARNING 6
+#endif
+
+#ifndef LOG_NOTICE
+#define LOG_NOTICE 7
+#endif
+
+#ifndef LOG_INFO
+#define LOG_INFO 8
+#endif
+
+#ifndef LOG_DEBUG
+#define LOG_DEBUG 9
+#endif
+#endif /* SYSLOG */
+
+extern long *log_event_mask;
+
+/* set this to non-zero in calling app if errors go to stderr */
+extern int   chk_file_sec_stderr;
+
+
+extern void log_close(int);
+extern void log_err(int, char *, char *);
+extern void log_event(int, int, char *, char *);
+extern int  log_open(char *, char *);
+extern void log_record(int, int, char *, char *);
+extern void log_roll(int);
+extern long log_size(void);
+
+extern char log_buffer[LOG_BUF_SIZE];
+
+extern int  chk_file_sec(char *, int, int, int, int, char *);
+extern int  setup_env(char *);
+
+#ifdef TORQUE_2_4
+extern void log_ext(int,char *,char *,int);
+int log_init(char *, char *);
+extern int  log_remove_old(char *,unsigned long);
+#endif
+
+/* Event types */
+
+#define PBSEVENT_ERROR  0x0001  /* internal errors       */
+#define PBSEVENT_SYSTEM  0x0002  /* system (server) events     */
+#define PBSEVENT_ADMIN  0x0004  /* admin events        */
+#define PBSEVENT_JOB  0x0008  /* job related events       */
+#define PBSEVENT_JOB_USAGE 0x0010  /* End of Job accounting      */
+#define PBSEVENT_SECURITY 0x0020  /* security violation events  */
+#define PBSEVENT_SCHED  0x0040  /* scheduler events       */
+#define PBSEVENT_DEBUG  0x0080  /* common debug messages      */
+#define PBSEVENT_DEBUG2  0x0100  /* less needed debug messages */
+#define PBSEVENT_FORCE  0x8000  /* set to force a messag      */
+
+/* Event Object Classes, see array class_names[] in ../lib/Liblog/pbs_log.c   */
+
+#define PBS_EVENTCLASS_SERVER 1 /* The server itself */
+#define PBS_EVENTCLASS_QUEUE 2 /* Queues  */
+#define PBS_EVENTCLASS_JOB 3 /* Jobs   */
+#define PBS_EVENTCLASS_REQUEST 4 /* Batch Requests */
+#define PBS_EVENTCLASS_FILE 5 /* A Job related File */
+#define PBS_EVENTCLASS_ACCT 6 /* Accounting info */
+#define PBS_EVENTCLASS_NODE 7 /* Nodes           */
+
+/* Logging Masks */
+
+#define PBSEVENT_MASK  0x01ff
+
+/* definition's for pbs_log.c's log_remove_old() function */
+#define MAX_PATH_LEN    1024  /* maximum possible length of any path */
+#define SECS_PER_DAY     86400
+
+#if !defined(TRUE) || !defined(FALSE)
+#define TRUE 1
+#define FALSE 0
+#endif /* !defined(TRUE) || !defined(FALSE) */
+
+/* HvB:
+ *   msg_daemonname is extern declared in liblog.a. So define it here
+*/
+char *msg_daemonname = "pbs_python";
+
+#endif /* ifndef LOG_H */
Index: trunk/src/C/pbs.py
===================================================================
--- trunk/src/C/pbs.py	(revision 300)
+++ trunk/src/C/pbs.py	(revision 300)
@@ -0,0 +1,938 @@
+# This file was automatically generated by SWIG (http://www.swig.org).
+# Version 1.3.40
+#
+# Do not make changes to this file unless you know what you are doing--modify
+# the SWIG interface file instead.
+# This file is compatible with both classic and new-style classes.
+
+from sys import version_info
+if version_info >= (2,6,0):
+    def swig_import_helper():
+        from os.path import dirname
+        import imp
+        fp = None
+        try:
+            fp, pathname, description = imp.find_module('_pbs', [dirname(__file__)])
+        except ImportError:
+            import _pbs
+            return _pbs
+        if fp is not None:
+            try:
+                _mod = imp.load_module('_pbs', fp, pathname, description)
+            finally:
+                fp.close()
+            return _mod
+    _pbs = swig_import_helper()
+    del swig_import_helper
+else:
+    import _pbs
+del version_info
+try:
+    _swig_property = property
+except NameError:
+    pass # Python < 2.2 doesn't have 'property'.
+def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
+    if (name == "thisown"): return self.this.own(value)
+    if (name == "this"):
+        if type(value).__name__ == 'SwigPyObject':
+            self.__dict__[name] = value
+            return
+    method = class_type.__swig_setmethods__.get(name,None)
+    if method: return method(self,value)
+    if (not static) or hasattr(self,name):
+        self.__dict__[name] = value
+    else:
+        raise AttributeError("You cannot add attributes to %s" % self)
+
+def _swig_setattr(self,class_type,name,value):
+    return _swig_setattr_nondynamic(self,class_type,name,value,0)
+
+def _swig_getattr(self,class_type,name):
+    if (name == "thisown"): return self.this.own()
+    method = class_type.__swig_getmethods__.get(name,None)
+    if method: return method(self)
+    raise AttributeError(name)
+
+def _swig_repr(self):
+    try: strthis = "proxy of " + self.this.__repr__()
+    except: strthis = ""
+    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
+
+try:
+    _object = object
+    _newclass = 1
+except AttributeError:
+    class _object : pass
+    _newclass = 0
+
+
+
+def new_attrl(*args):
+  return _pbs.new_attrl(*args)
+new_attrl = _pbs.new_attrl
+
+def new_attropl(*args):
+  return _pbs.new_attropl(*args)
+new_attropl = _pbs.new_attropl
+
+def new_batch_status():
+  return _pbs.new_batch_status()
+new_batch_status = _pbs.new_batch_status
+
+def get_error():
+  return _pbs.get_error()
+get_error = _pbs.get_error
+ATTR_a = _pbs.ATTR_a
+ATTR_c = _pbs.ATTR_c
+ATTR_e = _pbs.ATTR_e
+ATTR_f = _pbs.ATTR_f
+ATTR_g = _pbs.ATTR_g
+ATTR_h = _pbs.ATTR_h
+ATTR_j = _pbs.ATTR_j
+ATTR_k = _pbs.ATTR_k
+ATTR_l = _pbs.ATTR_l
+ATTR_m = _pbs.ATTR_m
+ATTR_o = _pbs.ATTR_o
+ATTR_p = _pbs.ATTR_p
+ATTR_q = _pbs.ATTR_q
+ATTR_r = _pbs.ATTR_r
+ATTR_t = _pbs.ATTR_t
+ATTR_array_id = _pbs.ATTR_array_id
+ATTR_u = _pbs.ATTR_u
+ATTR_v = _pbs.ATTR_v
+ATTR_A = _pbs.ATTR_A
+ATTR_M = _pbs.ATTR_M
+ATTR_N = _pbs.ATTR_N
+ATTR_S = _pbs.ATTR_S
+ATTR_depend = _pbs.ATTR_depend
+ATTR_inter = _pbs.ATTR_inter
+ATTR_stagein = _pbs.ATTR_stagein
+ATTR_stageout = _pbs.ATTR_stageout
+ATTR_jobtype = _pbs.ATTR_jobtype
+ATTR_ctime = _pbs.ATTR_ctime
+ATTR_exechost = _pbs.ATTR_exechost
+ATTR_mtime = _pbs.ATTR_mtime
+ATTR_qtime = _pbs.ATTR_qtime
+ATTR_session = _pbs.ATTR_session
+ATTR_euser = _pbs.ATTR_euser
+ATTR_egroup = _pbs.ATTR_egroup
+ATTR_hashname = _pbs.ATTR_hashname
+ATTR_hopcount = _pbs.ATTR_hopcount
+ATTR_security = _pbs.ATTR_security
+ATTR_sched_hint = _pbs.ATTR_sched_hint
+ATTR_substate = _pbs.ATTR_substate
+ATTR_name = _pbs.ATTR_name
+ATTR_owner = _pbs.ATTR_owner
+ATTR_used = _pbs.ATTR_used
+ATTR_state = _pbs.ATTR_state
+ATTR_queue = _pbs.ATTR_queue
+ATTR_server = _pbs.ATTR_server
+ATTR_maxrun = _pbs.ATTR_maxrun
+ATTR_maxreport = _pbs.ATTR_maxreport
+ATTR_total = _pbs.ATTR_total
+ATTR_comment = _pbs.ATTR_comment
+ATTR_cookie = _pbs.ATTR_cookie
+ATTR_qrank = _pbs.ATTR_qrank
+ATTR_altid = _pbs.ATTR_altid
+ATTR_etime = _pbs.ATTR_etime
+ATTR_exitstat = _pbs.ATTR_exitstat
+ATTR_forwardx11 = _pbs.ATTR_forwardx11
+ATTR_submit_args = _pbs.ATTR_submit_args
+ATTR_tokens = _pbs.ATTR_tokens
+ATTR_netcounter = _pbs.ATTR_netcounter
+ATTR_umask = _pbs.ATTR_umask
+ATTR_start_time = _pbs.ATTR_start_time
+ATTR_start_count = _pbs.ATTR_start_count
+ATTR_checkpoint_dir = _pbs.ATTR_checkpoint_dir
+ATTR_checkpoint_name = _pbs.ATTR_checkpoint_name
+ATTR_checkpoint_time = _pbs.ATTR_checkpoint_time
+ATTR_checkpoint_restart_status = _pbs.ATTR_checkpoint_restart_status
+ATTR_restart_name = _pbs.ATTR_restart_name
+ATTR_comp_time = _pbs.ATTR_comp_time
+ATTR_reported = _pbs.ATTR_reported
+ATTR_intcmd = _pbs.ATTR_intcmd
+ATTR_aclgren = _pbs.ATTR_aclgren
+ATTR_aclgroup = _pbs.ATTR_aclgroup
+ATTR_aclhten = _pbs.ATTR_aclhten
+ATTR_aclhost = _pbs.ATTR_aclhost
+ATTR_acluren = _pbs.ATTR_acluren
+ATTR_acluser = _pbs.ATTR_acluser
+ATTR_altrouter = _pbs.ATTR_altrouter
+ATTR_checkpoint_min = _pbs.ATTR_checkpoint_min
+ATTR_enable = _pbs.ATTR_enable
+ATTR_fromroute = _pbs.ATTR_fromroute
+ATTR_hostlist = _pbs.ATTR_hostlist
+ATTR_killdelay = _pbs.ATTR_killdelay
+ATTR_maxgrprun = _pbs.ATTR_maxgrprun
+ATTR_maxque = _pbs.ATTR_maxque
+ATTR_maxuserque = _pbs.ATTR_maxuserque
+ATTR_maxuserrun = _pbs.ATTR_maxuserrun
+ATTR_qtype = _pbs.ATTR_qtype
+ATTR_rescassn = _pbs.ATTR_rescassn
+ATTR_rescdflt = _pbs.ATTR_rescdflt
+ATTR_rescmax = _pbs.ATTR_rescmax
+ATTR_rescmin = _pbs.ATTR_rescmin
+ATTR_rerunnable = _pbs.ATTR_rerunnable
+ATTR_rndzretry = _pbs.ATTR_rndzretry
+ATTR_routedest = _pbs.ATTR_routedest
+ATTR_routeheld = _pbs.ATTR_routeheld
+ATTR_routewait = _pbs.ATTR_routewait
+ATTR_routeretry = _pbs.ATTR_routeretry
+ATTR_routelife = _pbs.ATTR_routelife
+ATTR_rsvexpdt = _pbs.ATTR_rsvexpdt
+ATTR_rsvsync = _pbs.ATTR_rsvsync
+ATTR_start = _pbs.ATTR_start
+ATTR_count = _pbs.ATTR_count
+ATTR_number = _pbs.ATTR_number
+ATTR_acllogic = _pbs.ATTR_acllogic
+ATTR_aclgrpslpy = _pbs.ATTR_aclgrpslpy
+ATTR_keepcompleted = _pbs.ATTR_keepcompleted
+ATTR_disallowedtypes = _pbs.ATTR_disallowedtypes
+ATTR_is_transit = _pbs.ATTR_is_transit
+ATTR_aclroot = _pbs.ATTR_aclroot
+ATTR_managers = _pbs.ATTR_managers
+ATTR_dfltque = _pbs.ATTR_dfltque
+ATTR_dispsvrsuffix = _pbs.ATTR_dispsvrsuffix
+ATTR_jobsuffixalias = _pbs.ATTR_jobsuffixalias
+ATTR_defnode = _pbs.ATTR_defnode
+ATTR_locsvrs = _pbs.ATTR_locsvrs
+ATTR_logevents = _pbs.ATTR_logevents
+ATTR_logfile = _pbs.ATTR_logfile
+ATTR_loglevel = _pbs.ATTR_loglevel
+ATTR_mailfrom = _pbs.ATTR_mailfrom
+ATTR_nodepack = _pbs.ATTR_nodepack
+ATTR_nodesuffix = _pbs.ATTR_nodesuffix
+ATTR_operators = _pbs.ATTR_operators
+ATTR_queryother = _pbs.ATTR_queryother
+ATTR_resccost = _pbs.ATTR_resccost
+ATTR_rescavail = _pbs.ATTR_rescavail
+ATTR_schedit = _pbs.ATTR_schedit
+ATTR_scheduling = _pbs.ATTR_scheduling
+ATTR_status = _pbs.ATTR_status
+ATTR_syscost = _pbs.ATTR_syscost
+ATTR_pingrate = _pbs.ATTR_pingrate
+ATTR_ndchkrate = _pbs.ATTR_ndchkrate
+ATTR_tcptimeout = _pbs.ATTR_tcptimeout
+ATTR_jobstatrate = _pbs.ATTR_jobstatrate
+ATTR_polljobs = _pbs.ATTR_polljobs
+ATTR_downonerror = _pbs.ATTR_downonerror
+ATTR_disableserveridcheck = _pbs.ATTR_disableserveridcheck
+ATTR_jobnanny = _pbs.ATTR_jobnanny
+ATTR_ownerpurge = _pbs.ATTR_ownerpurge
+ATTR_qcqlimits = _pbs.ATTR_qcqlimits
+ATTR_momjobsync = _pbs.ATTR_momjobsync
+ATTR_maildomain = _pbs.ATTR_maildomain
+ATTR_pbsversion = _pbs.ATTR_pbsversion
+ATTR_submithosts = _pbs.ATTR_submithosts
+ATTR_allownodesubmit = _pbs.ATTR_allownodesubmit
+ATTR_allowproxyuser = _pbs.ATTR_allowproxyuser
+ATTR_autonodenp = _pbs.ATTR_autonodenp
+ATTR_servername = _pbs.ATTR_servername
+ATTR_logfilemaxsize = _pbs.ATTR_logfilemaxsize
+ATTR_logfilerolldepth = _pbs.ATTR_logfilerolldepth
+ATTR_logkeepdays = _pbs.ATTR_logkeepdays
+ATTR_nextjobnum = _pbs.ATTR_nextjobnum
+ATTR_extraresc = _pbs.ATTR_extraresc
+ATTR_schedversion = _pbs.ATTR_schedversion
+ATTR_acctkeepdays = _pbs.ATTR_acctkeepdays
+ATTR_lockfile = _pbs.ATTR_lockfile
+ATTR_credentiallifetime = _pbs.ATTR_credentiallifetime
+ATTR_jobmustreport = _pbs.ATTR_jobmustreport
+ATTR_LockfileUpdateTime = _pbs.ATTR_LockfileUpdateTime
+ATTR_LockfileCheckTime = _pbs.ATTR_LockfileCheckTime
+ATTR_npdefault = _pbs.ATTR_npdefault
+ATTR_jobstarttimeout = _pbs.ATTR_jobstarttimeout
+ATTR_NODE_state = _pbs.ATTR_NODE_state
+ATTR_NODE_np = _pbs.ATTR_NODE_np
+ATTR_NODE_properties = _pbs.ATTR_NODE_properties
+ATTR_NODE_ntype = _pbs.ATTR_NODE_ntype
+ATTR_NODE_jobs = _pbs.ATTR_NODE_jobs
+ATTR_NODE_status = _pbs.ATTR_NODE_status
+ATTR_NODE_note = _pbs.ATTR_NODE_note
+ATTR_mailsubjectfmt = _pbs.ATTR_mailsubjectfmt
+ATTR_mailbodyfmt = _pbs.ATTR_mailbodyfmt
+CHECKPOINT_UNSPECIFIED = _pbs.CHECKPOINT_UNSPECIFIED
+NO_HOLD = _pbs.NO_HOLD
+NO_JOIN = _pbs.NO_JOIN
+NO_KEEP = _pbs.NO_KEEP
+MAIL_AT_ABORT = _pbs.MAIL_AT_ABORT
+DELDELAY = _pbs.DELDELAY
+DELPURGE = _pbs.DELPURGE
+PURGECOMP = _pbs.PURGECOMP
+EXECQUEONLY = _pbs.EXECQUEONLY
+RERUNFORCE = _pbs.RERUNFORCE
+USER_HOLD = _pbs.USER_HOLD
+OTHER_HOLD = _pbs.OTHER_HOLD
+SYSTEM_HOLD = _pbs.SYSTEM_HOLD
+ND_free = _pbs.ND_free
+ND_offline = _pbs.ND_offline
+ND_down = _pbs.ND_down
+ND_reserve = _pbs.ND_reserve
+ND_job_exclusive = _pbs.ND_job_exclusive
+ND_job_sharing = _pbs.ND_job_sharing
+ND_busy = _pbs.ND_busy
+ND_state_unknown = _pbs.ND_state_unknown
+ND_timeshared = _pbs.ND_timeshared
+ND_cluster = _pbs.ND_cluster
+Q_DT_batch = _pbs.Q_DT_batch
+Q_DT_interactive = _pbs.Q_DT_interactive
+Q_DT_rerunable = _pbs.Q_DT_rerunable
+Q_DT_nonrerunable = _pbs.Q_DT_nonrerunable
+Q_DT_fault_tolerant = _pbs.Q_DT_fault_tolerant
+Q_DT_fault_intolerant = _pbs.Q_DT_fault_intolerant
+Q_DT_job_array = _pbs.Q_DT_job_array
+MAX_ENCODE_BFR = _pbs.MAX_ENCODE_BFR
+MGR_CMD_CREATE = _pbs.MGR_CMD_CREATE
+MGR_CMD_DELETE = _pbs.MGR_CMD_DELETE
+MGR_CMD_SET = _pbs.MGR_CMD_SET
+MGR_CMD_UNSET = _pbs.MGR_CMD_UNSET
+MGR_CMD_LIST = _pbs.MGR_CMD_LIST
+MGR_CMD_PRINT = _pbs.MGR_CMD_PRINT
+MGR_CMD_ACTIVE = _pbs.MGR_CMD_ACTIVE
+MGR_OBJ_NONE = _pbs.MGR_OBJ_NONE
+MGR_OBJ_SERVER = _pbs.MGR_OBJ_SERVER
+MGR_OBJ_QUEUE = _pbs.MGR_OBJ_QUEUE
+MGR_OBJ_JOB = _pbs.MGR_OBJ_JOB
+MGR_OBJ_NODE = _pbs.MGR_OBJ_NODE
+MSG_OUT = _pbs.MSG_OUT
+MSG_ERR = _pbs.MSG_ERR
+SHUT_SIG = _pbs.SHUT_SIG
+SHUT_IMMEDIATE = _pbs.SHUT_IMMEDIATE
+SHUT_DELAY = _pbs.SHUT_DELAY
+SHUT_QUICK = _pbs.SHUT_QUICK
+SIG_RESUME = _pbs.SIG_RESUME
+SIG_SUSPEND = _pbs.SIG_SUSPEND
+PBS_MAXHOSTNAME = _pbs.PBS_MAXHOSTNAME
+MAXPATHLEN = _pbs.MAXPATHLEN
+MAXNAMLEN = _pbs.MAXNAMLEN
+MAX_NOTE = _pbs.MAX_NOTE
+MAX_NOTE_STR = _pbs.MAX_NOTE_STR
+PBS_MAXUSER = _pbs.PBS_MAXUSER
+PBS_MAXGRPN = _pbs.PBS_MAXGRPN
+PBS_MAXQUEUENAME = _pbs.PBS_MAXQUEUENAME
+PBS_MAXSERVERNAME = _pbs.PBS_MAXSERVERNAME
+PBS_MAXJOBARRAYLEN = _pbs.PBS_MAXJOBARRAYLEN
+PBS_MAXSEQNUM = _pbs.PBS_MAXSEQNUM
+PBS_MAXPORTNUM = _pbs.PBS_MAXPORTNUM
+PBS_MAXJOBARRAY = _pbs.PBS_MAXJOBARRAY
+PBS_MAXSVRJOBID = _pbs.PBS_MAXSVRJOBID
+PBS_MAXCLTJOBID = _pbs.PBS_MAXCLTJOBID
+PBS_MAXDEST = _pbs.PBS_MAXDEST
+PBS_MAXROUTEDEST = _pbs.PBS_MAXROUTEDEST
+PBS_USE_IFF = _pbs.PBS_USE_IFF
+PBS_INTERACTIVE = _pbs.PBS_INTERACTIVE
+PBS_TERM_BUF_SZ = _pbs.PBS_TERM_BUF_SZ
+PBS_TERM_CCA = _pbs.PBS_TERM_CCA
+PBS_QS_VERSION_BASE = _pbs.PBS_QS_VERSION_BASE
+PBS_QS_VERSION_INT = _pbs.PBS_QS_VERSION_INT
+PBS_QS_VERSION = _pbs.PBS_QS_VERSION
+PBS_BATCH_SERVICE_NAME = _pbs.PBS_BATCH_SERVICE_NAME
+PBS_BATCH_SERVICE_PORT = _pbs.PBS_BATCH_SERVICE_PORT
+PBS_BATCH_SERVICE_NAME_DIS = _pbs.PBS_BATCH_SERVICE_NAME_DIS
+PBS_BATCH_SERVICE_PORT_DIS = _pbs.PBS_BATCH_SERVICE_PORT_DIS
+PBS_MOM_SERVICE_NAME = _pbs.PBS_MOM_SERVICE_NAME
+PBS_MOM_SERVICE_PORT = _pbs.PBS_MOM_SERVICE_PORT
+PBS_MANAGER_SERVICE_NAME = _pbs.PBS_MANAGER_SERVICE_NAME
+PBS_MANAGER_SERVICE_PORT = _pbs.PBS_MANAGER_SERVICE_PORT
+PBS_SCHEDULER_SERVICE_NAME = _pbs.PBS_SCHEDULER_SERVICE_NAME
+PBS_SCHEDULER_SERVICE_PORT = _pbs.PBS_SCHEDULER_SERVICE_PORT
+CHECKPOINTHOLD = _pbs.CHECKPOINTHOLD
+CHECKPOINTCONT = _pbs.CHECKPOINTCONT
+MOM_DEFAULT_CHECKPOINT_DIR = _pbs.MOM_DEFAULT_CHECKPOINT_DIR
+SET = _pbs.SET
+UNSET = _pbs.UNSET
+INCR = _pbs.INCR
+DECR = _pbs.DECR
+EQ = _pbs.EQ
+NE = _pbs.NE
+GE = _pbs.GE
+GT = _pbs.GT
+LE = _pbs.LE
+LT = _pbs.LT
+DFLT = _pbs.DFLT
+MERGE = _pbs.MERGE
+class attrl(_object):
+    __swig_setmethods__ = {}
+    __setattr__ = lambda self, name, value: _swig_setattr(self, attrl, name, value)
+    __swig_getmethods__ = {}
+    __getattr__ = lambda self, name: _swig_getattr(self, attrl, name)
+    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
+    __repr__ = _swig_repr
+    __swig_setmethods__["next"] = _pbs.attrl_next_set
+    __swig_getmethods__["next"] = _pbs.attrl_next_get
+    if _newclass:next = _swig_property(_pbs.attrl_next_get, _pbs.attrl_next_set)
+    __swig_setmethods__["name"] = _pbs.attrl_name_set
+    __swig_getmethods__["name"] = _pbs.attrl_name_get
+    if _newclass:name = _swig_property(_pbs.attrl_name_get, _pbs.attrl_name_set)
+    __swig_setmethods__["resource"] = _pbs.attrl_resource_set
+    __swig_getmethods__["resource"] = _pbs.attrl_resource_get
+    if _newclass:resource = _swig_property(_pbs.attrl_resource_get, _pbs.attrl_resource_set)
+    __swig_setmethods__["value"] = _pbs.attrl_value_set
+    __swig_getmethods__["value"] = _pbs.attrl_value_get
+    if _newclass:value = _swig_property(_pbs.attrl_value_get, _pbs.attrl_value_set)
+    __swig_setmethods__["op"] = _pbs.attrl_op_set
+    __swig_getmethods__["op"] = _pbs.attrl_op_get
+    if _newclass:op = _swig_property(_pbs.attrl_op_get, _pbs.attrl_op_set)
+    def __str__(self): return _pbs.attrl___str__(self)
+    __swig_destroy__ = _pbs.delete_attrl
+    __del__ = lambda self : None;
+attrl_swigregister = _pbs.attrl_swigregister
+attrl_swigregister(attrl)
+
+class attropl(_object):
+    __swig_setmethods__ = {}
+    __setattr__ = lambda self, name, value: _swig_setattr(self, attropl, name, value)
+    __swig_getmethods__ = {}
+    __getattr__ = lambda self, name: _swig_getattr(self, attropl, name)
+    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
+    __repr__ = _swig_repr
+    __swig_setmethods__["next"] = _pbs.attropl_next_set
+    __swig_getmethods__["next"] = _pbs.attropl_next_get
+    if _newclass:next = _swig_property(_pbs.attropl_next_get, _pbs.attropl_next_set)
+    __swig_setmethods__["name"] = _pbs.attropl_name_set
+    __swig_getmethods__["name"] = _pbs.attropl_name_get
+    if _newclass:name = _swig_property(_pbs.attropl_name_get, _pbs.attropl_name_set)
+    __swig_setmethods__["resource"] = _pbs.attropl_resource_set
+    __swig_getmethods__["resource"] = _pbs.attropl_resource_get
+    if _newclass:resource = _swig_property(_pbs.attropl_resource_get, _pbs.attropl_resource_set)
+    __swig_setmethods__["value"] = _pbs.attropl_value_set
+    __swig_getmethods__["value"] = _pbs.attropl_value_get
+    if _newclass:value = _swig_property(_pbs.attropl_value_get, _pbs.attropl_value_set)
+    __swig_setmethods__["op"] = _pbs.attropl_op_set
+    __swig_getmethods__["op"] = _pbs.attropl_op_get
+    if _newclass:op = _swig_property(_pbs.attropl_op_get, _pbs.attropl_op_set)
+    def __str__(self): return _pbs.attropl___str__(self)
+    __swig_destroy__ = _pbs.delete_attropl
+    __del__ = lambda self : None;
+attropl_swigregister = _pbs.attropl_swigregister
+attropl_swigregister(attropl)
+
+class batch_status(_object):
+    __swig_setmethods__ = {}
+    __setattr__ = lambda self, name, value: _swig_setattr(self, batch_status, name, value)
+    __swig_getmethods__ = {}
+    __getattr__ = lambda self, name: _swig_getattr(self, batch_status, name)
+    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
+    __repr__ = _swig_repr
+    __swig_setmethods__["next"] = _pbs.batch_status_next_set
+    __swig_getmethods__["next"] = _pbs.batch_status_next_get
+    if _newclass:next = _swig_property(_pbs.batch_status_next_get, _pbs.batch_status_next_set)
+    __swig_setmethods__["name"] = _pbs.batch_status_name_set
+    __swig_getmethods__["name"] = _pbs.batch_status_name_get
+    if _newclass:name = _swig_property(_pbs.batch_status_name_get, _pbs.batch_status_name_set)
+    __swig_setmethods__["attribs"] = _pbs.batch_status_attribs_set
+    __swig_getmethods__["attribs"] = _pbs.batch_status_attribs_get
+    if _newclass:attribs = _swig_property(_pbs.batch_status_attribs_get, _pbs.batch_status_attribs_set)
+    __swig_setmethods__["text"] = _pbs.batch_status_text_set
+    __swig_getmethods__["text"] = _pbs.batch_status_text_get
+    if _newclass:text = _swig_property(_pbs.batch_status_text_get, _pbs.batch_status_text_set)
+batch_status_swigregister = _pbs.batch_status_swigregister
+batch_status_swigregister(batch_status)
+
+
+def avail(*args):
+  return _pbs.avail(*args)
+avail = _pbs.avail
+
+def pbs_asyrunjob(*args):
+  return _pbs.pbs_asyrunjob(*args)
+pbs_asyrunjob = _pbs.pbs_asyrunjob
+
+def pbs_alterjob(*args):
+  return _pbs.pbs_alterjob(*args)
+pbs_alterjob = _pbs.pbs_alterjob
+
+def pbs_connect(*args):
+  return _pbs.pbs_connect(*args)
+pbs_connect = _pbs.pbs_connect
+
+def pbs_query_max_connections():
+  return _pbs.pbs_query_max_connections()
+pbs_query_max_connections = _pbs.pbs_query_max_connections
+
+def pbs_default():
+  return _pbs.pbs_default()
+pbs_default = _pbs.pbs_default
+
+def pbs_deljob(*args):
+  return _pbs.pbs_deljob(*args)
+pbs_deljob = _pbs.pbs_deljob
+
+def pbs_disconnect(*args):
+  return _pbs.pbs_disconnect(*args)
+pbs_disconnect = _pbs.pbs_disconnect
+
+def pbs_geterrmsg(*args):
+  return _pbs.pbs_geterrmsg(*args)
+pbs_geterrmsg = _pbs.pbs_geterrmsg
+
+def pbs_holdjob(*args):
+  return _pbs.pbs_holdjob(*args)
+pbs_holdjob = _pbs.pbs_holdjob
+
+def pbs_locjob(*args):
+  return _pbs.pbs_locjob(*args)
+pbs_locjob = _pbs.pbs_locjob
+
+def pbs_manager(*args):
+  return _pbs.pbs_manager(*args)
+pbs_manager = _pbs.pbs_manager
+
+def pbs_movejob(*args):
+  return _pbs.pbs_movejob(*args)
+pbs_movejob = _pbs.pbs_movejob
+
+def pbs_msgjob(*args):
+  return _pbs.pbs_msgjob(*args)
+pbs_msgjob = _pbs.pbs_msgjob
+
+def pbs_orderjob(*args):
+  return _pbs.pbs_orderjob(*args)
+pbs_orderjob = _pbs.pbs_orderjob
+
+def pbs_rescquery(*args):
+  return _pbs.pbs_rescquery(*args)
+pbs_rescquery = _pbs.pbs_rescquery
+
+def pbs_rescreserve(*args):
+  return _pbs.pbs_rescreserve(*args)
+pbs_rescreserve = _pbs.pbs_rescreserve
+
+def pbs_rescrelease(*args):
+  return _pbs.pbs_rescrelease(*args)
+pbs_rescrelease = _pbs.pbs_rescrelease
+
+def pbs_rerunjob(*args):
+  return _pbs.pbs_rerunjob(*args)
+pbs_rerunjob = _pbs.pbs_rerunjob
+
+def pbs_rlsjob(*args):
+  return _pbs.pbs_rlsjob(*args)
+pbs_rlsjob = _pbs.pbs_rlsjob
+
+def pbs_runjob(*args):
+  return _pbs.pbs_runjob(*args)
+pbs_runjob = _pbs.pbs_runjob
+
+def pbs_selectjob(*args):
+  return _pbs.pbs_selectjob(*args)
+pbs_selectjob = _pbs.pbs_selectjob
+
+def pbs_sigjob(*args):
+  return _pbs.pbs_sigjob(*args)
+pbs_sigjob = _pbs.pbs_sigjob
+
+def pbs_statfree(*args):
+  return _pbs.pbs_statfree(*args)
+pbs_statfree = _pbs.pbs_statfree
+
+def pbs_statjob(*args):
+  return _pbs.pbs_statjob(*args)
+pbs_statjob = _pbs.pbs_statjob
+
+def pbs_selstat(*args):
+  return _pbs.pbs_selstat(*args)
+pbs_selstat = _pbs.pbs_selstat
+
+def pbs_statque(*args):
+  return _pbs.pbs_statque(*args)
+pbs_statque = _pbs.pbs_statque
+
+def pbs_statserver(*args):
+  return _pbs.pbs_statserver(*args)
+pbs_statserver = _pbs.pbs_statserver
+
+def pbs_statnode(*args):
+  return _pbs.pbs_statnode(*args)
+pbs_statnode = _pbs.pbs_statnode
+
+def pbs_submit(*args):
+  return _pbs.pbs_submit(*args)
+pbs_submit = _pbs.pbs_submit
+
+def pbs_terminate(*args):
+  return _pbs.pbs_terminate(*args)
+pbs_terminate = _pbs.pbs_terminate
+
+def totpool(*args):
+  return _pbs.totpool(*args)
+totpool = _pbs.totpool
+
+def usepool(*args):
+  return _pbs.usepool(*args)
+usepool = _pbs.usepool
+
+def pbs_fbserver():
+  return _pbs.pbs_fbserver()
+pbs_fbserver = _pbs.pbs_fbserver
+
+def pbs_get_server_list():
+  return _pbs.pbs_get_server_list()
+pbs_get_server_list = _pbs.pbs_get_server_list
+
+def pbs_sigjobasync(*args):
+  return _pbs.pbs_sigjobasync(*args)
+pbs_sigjobasync = _pbs.pbs_sigjobasync
+
+def pbs_alterjob_async(*args):
+  return _pbs.pbs_alterjob_async(*args)
+pbs_alterjob_async = _pbs.pbs_alterjob_async
+
+def pbs_checkpointjob(*args):
+  return _pbs.pbs_checkpointjob(*args)
+pbs_checkpointjob = _pbs.pbs_checkpointjob
+
+def openrm(*args):
+  return _pbs.openrm(*args)
+openrm = _pbs.openrm
+
+def closerm(*args):
+  return _pbs.closerm(*args)
+closerm = _pbs.closerm
+
+def downrm(*args):
+  return _pbs.downrm(*args)
+downrm = _pbs.downrm
+
+def configrm(*args):
+  return _pbs.configrm(*args)
+configrm = _pbs.configrm
+
+def addreq(*args):
+  return _pbs.addreq(*args)
+addreq = _pbs.addreq
+
+def allreq(*args):
+  return _pbs.allreq(*args)
+allreq = _pbs.allreq
+
+def getreq(*args):
+  return _pbs.getreq(*args)
+getreq = _pbs.getreq
+
+def flushreq():
+  return _pbs.flushreq()
+flushreq = _pbs.flushreq
+
+def activereq():
+  return _pbs.activereq()
+activereq = _pbs.activereq
+
+def fullresp(*args):
+  return _pbs.fullresp(*args)
+fullresp = _pbs.fullresp
+LOG_BUF_SIZE = _pbs.LOG_BUF_SIZE
+LOG_EMERG = _pbs.LOG_EMERG
+LOG_ALERT = _pbs.LOG_ALERT
+LOG_CRIT = _pbs.LOG_CRIT
+LOG_ERR = _pbs.LOG_ERR
+LOG_WARNING = _pbs.LOG_WARNING
+LOG_NOTICE = _pbs.LOG_NOTICE
+LOG_INFO = _pbs.LOG_INFO
+LOG_DEBUG = _pbs.LOG_DEBUG
+
+def log_close(*args):
+  return _pbs.log_close(*args)
+log_close = _pbs.log_close
+
+def log_err(*args):
+  return _pbs.log_err(*args)
+log_err = _pbs.log_err
+
+def log_event(*args):
+  return _pbs.log_event(*args)
+log_event = _pbs.log_event
+
+def log_open(*args):
+  return _pbs.log_open(*args)
+log_open = _pbs.log_open
+
+def log_record(*args):
+  return _pbs.log_record(*args)
+log_record = _pbs.log_record
+
+def log_roll(*args):
+  return _pbs.log_roll(*args)
+log_roll = _pbs.log_roll
+
+def log_size():
+  return _pbs.log_size()
+log_size = _pbs.log_size
+
+def chk_file_sec(*args):
+  return _pbs.chk_file_sec(*args)
+chk_file_sec = _pbs.chk_file_sec
+
+def setup_env(*args):
+  return _pbs.setup_env(*args)
+setup_env = _pbs.setup_env
+
+def log_ext(*args):
+  return _pbs.log_ext(*args)
+log_ext = _pbs.log_ext
+
+def log_init(*args):
+  return _pbs.log_init(*args)
+log_init = _pbs.log_init
+
+def log_remove_old(*args):
+  return _pbs.log_remove_old(*args)
+log_remove_old = _pbs.log_remove_old
+PBSEVENT_ERROR = _pbs.PBSEVENT_ERROR
+PBSEVENT_SYSTEM = _pbs.PBSEVENT_SYSTEM
+PBSEVENT_ADMIN = _pbs.PBSEVENT_ADMIN
+PBSEVENT_JOB = _pbs.PBSEVENT_JOB
+PBSEVENT_JOB_USAGE = _pbs.PBSEVENT_JOB_USAGE
+PBSEVENT_SECURITY = _pbs.PBSEVENT_SECURITY
+PBSEVENT_SCHED = _pbs.PBSEVENT_SCHED
+PBSEVENT_DEBUG = _pbs.PBSEVENT_DEBUG
+PBSEVENT_DEBUG2 = _pbs.PBSEVENT_DEBUG2
+PBSEVENT_FORCE = _pbs.PBSEVENT_FORCE
+PBS_EVENTCLASS_SERVER = _pbs.PBS_EVENTCLASS_SERVER
+PBS_EVENTCLASS_QUEUE = _pbs.PBS_EVENTCLASS_QUEUE
+PBS_EVENTCLASS_JOB = _pbs.PBS_EVENTCLASS_JOB
+PBS_EVENTCLASS_REQUEST = _pbs.PBS_EVENTCLASS_REQUEST
+PBS_EVENTCLASS_FILE = _pbs.PBS_EVENTCLASS_FILE
+PBS_EVENTCLASS_ACCT = _pbs.PBS_EVENTCLASS_ACCT
+PBS_EVENTCLASS_NODE = _pbs.PBS_EVENTCLASS_NODE
+PBSEVENT_MASK = _pbs.PBSEVENT_MASK
+MAX_PATH_LEN = _pbs.MAX_PATH_LEN
+SECS_PER_DAY = _pbs.SECS_PER_DAY
+TRUE = _pbs.TRUE
+FALSE = _pbs.FALSE
+#  PBS python interface
+#  Author: Bas van der Vlies <basv@sara.nl>
+#  Date  : 27 Feb 2002
+#  Desc. : This is python wrapper class for getting the resource
+#          mom values.
+#
+# CVS info
+# $Id: resmom.py,v 1.6 2002/10/21 14:14:47 sscpbas Exp $
+# $Date: 2002/10/21 14:14:47 $
+# $Revision: 1.6 $
+#
+import string
+import types
+
+# Default linux resources to get from the mom
+#
+default_linux_res = [   
+    "availmem",	    # available memory size in KB
+    "ideal_load",	# static ideal_load value
+    "loadave",      # the current load average
+    "max_load",	    # static max_load value
+    "ncpus",        # number of cpus 
+    "physmem",      # physical memory size in KB
+    "resi",		    # resident memory size for a pid or session in KB
+    "totmem",	    # total memory size in KB
+    "walltime",	    # wall clock time for a pid
+]
+
+# Default irix6 resources to get from the mom
+#
+default_irix6_res = [   
+    "availmem",	# available memory size in KB
+    "loadave",      # the current load average
+    "ncpus",        # number of cpus
+    "physmem",      # physical memory size in KB
+    "resi",		# resident memory size for a pid or session in KB
+    "walltime",	# wall clock time for a pid
+    "quota",	# quota information (sizes in KB)
+]
+
+default_mom_res = [   
+    "arch",		# the architecture of the machine
+    "uname",	# the architecture of the machine
+    "cput",		# cpu time for a pid or session
+    "idletime",	# seconds of idle time
+    "mem",		# memory size for a pid or session in KB
+    "sessions",	# list of sessions in the system
+    "pids",         # list of pids in a session
+    "nsessions",	# number of sessions in the system
+    "nusers",	# number of users in the system
+    "size",		# size of a file or filesystem
+    "host",		# Name  of host on which job should be run 
+    "nodes",	# Number and/or type of nodes to be reserved for exclusive use by the job
+    "other",	# Allows a  user  to  specify  site  specific  information
+    "software",	# Allows a user to specify software required by the job
+]
+
+def check_resp(dict, str):
+  """
+  Check the daemon response. If we have no permission to
+  query the values then we got a 'None' response. Else
+  if we supplied a keyword that does not exits we get a
+  '?' response
+  """
+  if not str:
+    return
+  
+  ## Value can contain the '=' char :-(
+  #  
+  l =  string.split(str, '=')
+  key = string.strip(l[0])
+  if len(l) > 2:
+    val = string.strip( '='.join(l[1:]) )
+  else:
+    val = string.strip(l[1])
+
+  key = string.strip(key)
+  val = string.strip(val)
+
+  # Did we got a valid response
+  #
+  if not val[0] == '?':
+    dict[key] = val
+
+def use_default_keywords(id, d):
+  """
+  Get the default values from the mom daemon
+  """
+  for res in default_mom_res:
+    addreq(id, res)
+    resp = getreq(id)
+    check_resp(d, resp)
+
+  # Do not proceed if we have an empty dictionary
+  #
+  if not d:
+    return
+
+  if d['arch' ] == 'linux':
+    for res in default_linux_res:
+      addreq(id, res)
+      resp = getreq(id)
+      check_resp(d, resp)
+
+def use_user_keywords(id, d, l):
+  for res in l:
+    if type(res) is types.StringType:
+      addreq(id, res)
+      resp = getreq(id)
+      check_resp(d, resp)
+    else:
+      raise TypeError, 'Expected a string got %s :%s' %(type(res), res) 
+
+def get_mom_values(id, list = None):
+  """
+  This function will query the mom with a default resmon keywords
+  and 'arch' depended keywords. Supported archs are:
+    linux
+    irix6
+  User can also supply their own list of keywords as second parameter.
+  arguments:
+    id   : connection number with mom daemon on a node
+    list : optional parameter. If supplied then use this. A list
+           of mom keywords.
+  """
+
+  d = {}
+  if not list:
+    use_default_keywords(id, d)
+  else:
+    use_user_keywords(id, d , list)
+     
+  return d
+
+version_info = ( 4, 3, 6 )
+version = 'SARA pbs_python version 4.3.6'
+
+# A useful dict with error codes to text
+#
+# SVN Info:
+#	$Id: errors.py 429 2005-11-04 13:59:06Z bas $
+#
+errors_txt = { 
+	0 : 'no error',
+	15001 :	 'Unknown Job Identifier',
+	15002 : 'Undefined Attribute',
+	15003 : 'attempt to set READ ONLY attribute',
+	15004 : 'Invalid request',
+	15005 : 'Unknown batch request',
+	15006 : 'Too many submit retries',
+	15007 : 'No permission',
+	15008 : 'access from host not allowed',
+	15009 : 'job already exists',
+	15010 : 'system error occurred',
+	15011 : 'internal server error occurred',
+	15012 : 'parent job of dependent in rte que',
+	15013 : 'unknown signal name',
+	15014 : 'bad attribute value',
+	15015 : 'Cannot modify attrib in run state',
+	15016 : 'request invalid for job state',
+	15018 : 'Unknown queue name',
+	15019 : 'Invalid Credential in request',
+	15020 : 'Expired Credential in request',
+	15021 : 'Queue not enabled',
+	15022 : 'No access permission for queue',
+	15023 : 'Bad user - no password entry',
+	15024 : 'Max hop count exceeded',
+	15025 : 'Queue already exists',
+	15026 : 'incompatable queue attribute type',
+	15027 : 'Queue Busy (not empty)',
+	15028 : 'Queue name too long',
+	15029 : 'Feature',
+	15030 : 'Cannot enable queue,needs add def',
+	15031 : 'Protocol (ASN.1) error',
+	15032 : 'Bad attribute list structure',
+	15033 : 'No free connections',
+	15034 : 'No server to connect to',
+	15035 : 'Unknown resource',
+	15036 : 'Job exceeds Queue resource limits',
+	15037 : 'No Default Queue Defined',
+	15038 : 'Job Not Rerunnable',
+	15039 : 'Route rejected by all destinations',
+	15040 : 'Time in Route Queue Expired',
+	15041 : 'Request to MOM failed',
+	15042 : '(qsub) cannot access script file',
+	15043 : 'Stage In of files failed',
+	15044 : 'Resources temporarily unavailable',
+	15045 : 'Bad Group specified',
+	15046 : 'Max number of jobs in queue',
+	15047 : 'Checkpoint Busy, may be retries',
+	15048 : 'Limit exceeds allowable',
+	15049 : 'Bad Account attribute value',
+	15050 : 'Job already in exit state',
+	15051 : 'Job files not copied',
+	15052 : 'unknown job id after clean init',
+	15053 : 'No Master in Sync Set',
+	15054 : 'Invalid dependency',
+	15055 : 'Duplicate entry in List',
+	15056 : 'Bad DIS based Request Protocol',
+	15057 : 'cannot execute there',
+	15058 : 'sister rejected',
+	15059 : 'sister could not communicate',
+	15060 : 'req rejected -server shutting down',
+	15061 : 'not all tasks could checkpoint',
+	15062 : 'Named node is not in the list',
+	15063 : 'node-attribute not recognized',
+	15064 : 'Server has no node list',
+	15065 : 'Node name is too big',
+	15066 : 'Node name already exists',
+	15067 : 'Bad node-attribute value',
+	15068 : 'State values are mutually exclusive',
+	15069 : 'Error(s) during global modification of nodes',
+	15070 : 'could not contact Mom',
+	15071 : 'no time-shared nodes',
+	15201 : 'resource unknown',
+	15202 : 'parameter could not be used',
+	15203 : 'a parameter needed did not exist',
+	15204 : "something specified didn't exist",
+	15205 : 'a system error occured',
+	15206 : 'only part of reservation made'
+}
+
+def error():
+  """
+  Check if there is an error, if so fetch the error message string. 
+  It says more then a number!
+  """
+  e = get_error()
+  if errors_txt.has_key(e):
+     return (e, errors_txt[e])
+  else:
+     return (e, "Could not find a text for this error, uhhh")
+
+
+cvar = _pbs.cvar
+
Index: trunk/src/C/pbs_error.h
===================================================================
--- trunk/src/C/pbs_error.h	(revision 300)
+++ trunk/src/C/pbs_error.h	(revision 300)
@@ -0,0 +1,197 @@
+/*
+*         OpenPBS (Portable Batch System) v2.3 Software License
+* 
+* Copyright (c) 1999-2000 Veridian Information Solutions, Inc.
+* All rights reserved.
+* 
+* ---------------------------------------------------------------------------
+* For a license to use or redistribute the OpenPBS software under conditions
+* other than those described below, or to purchase support for this software,
+* please contact Veridian Systems, PBS Products Department ("Licensor") at:
+* 
+*    www.OpenPBS.org  +1 650 967-4675                  sales@OpenPBS.org
+*                        877 902-4PBS (US toll-free)
+* ---------------------------------------------------------------------------
+* 
+* This license covers use of the OpenPBS v2.3 software (the "Software") at
+* your site or location, and, for certain users, redistribution of the
+* Software to other sites and locations.  Use and redistribution of
+* OpenPBS v2.3 in source and binary forms, with or without modification,
+* are permitted provided that all of the following conditions are met.
+* After December 31, 2001, only conditions 3-6 must be met:
+* 
+* 1. Commercial and/or non-commercial use of the Software is permitted
+*    provided a current software registration is on file at www.OpenPBS.org.
+*    If use of this software contributes to a publication, product, or
+*    service, proper attribution must be given; see www.OpenPBS.org/credit.html
+* 
+* 2. Redistribution in any form is only permitted for non-commercial,
+*    non-profit purposes.  There can be no charge for the Software or any
+*    software incorporating the Software.  Further, there can be no
+*    expectation of revenue generated as a consequence of redistributing
+*    the Software.
+* 
+* 3. Any Redistribution of source code must retain the above copyright notice
+*    and the acknowledgment contained in paragraph 6, this list of conditions
+*    and the disclaimer contained in paragraph 7.
+* 
+* 4. Any Redistribution in binary form must reproduce the above copyright
+*    notice and the acknowledgment contained in paragraph 6, this list of
+*    conditions and the disclaimer contained in paragraph 7 in the
+*    documentation and/or other materials provided with the distribution.
+* 
+* 5. Redistributions in any form must be accompanied by information on how to
+*    obtain complete source code for the OpenPBS software and any
+*    modifications and/or additions to the OpenPBS software.  The source code
+*    must either be included in the distribution or be available for no more
+*    than the cost of distribution plus a nominal fee, and all modifications
+*    and additions to the Software must be freely redistributable by any party
+*    (including Licensor) without restriction.
+* 
+* 6. All advertising materials mentioning features or use of the Software must
+*    display the following acknowledgment:
+* 
+*     "This product includes software developed by NASA Ames Research Center,
+*     Lawrence Livermore National Laboratory, and Veridian Information 
+*     Solutions, Inc.
+*     Visit www.OpenPBS.org for OpenPBS software support,
+*     products, and information."
+* 
+* 7. DISCLAIMER OF WARRANTY
+* 
+* THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. ANY EXPRESS
+* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT
+* ARE EXPRESSLY DISCLAIMED.
+* 
+* IN NO EVENT SHALL VERIDIAN CORPORATION, ITS AFFILIATED COMPANIES, OR THE
+* U.S. GOVERNMENT OR ANY OF ITS AGENCIES BE LIABLE FOR ANY DIRECT OR INDIRECT,
+* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
+* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+* 
+* This license will be governed by the laws of the Commonwealth of Virginia,
+* without reference to its choice of law rules.
+*/
+
+/*
+ * The error returns possible to a Batch Request
+ *
+ * Each error is prefixed with the string PBSE_ for Portable (Posix)
+ * Batch System Error.  The numeric values start with 15000 since the
+ * POSIX Batch Extensions Working group is 1003.15
+ */
+#ifndef PBSE_
+
+#define PBSE_	15000
+
+#define PBSE_NONE       0		/* no error */
+#define PBSE_UNKJOBID	15001		/* Unknown Job Identifier */
+#define PBSE_NOATTR	15002		/* Undefined Attribute */
+#define PBSE_ATTRRO	15003		/* attempt to set READ ONLY attribute */
+#define PBSE_IVALREQ	15004		/* Invalid request */
+#define PBSE_UNKREQ	15005		/* Unknown batch request */
+#define PBSE_TOOMANY	15006		/* Too many submit retries */
+#define PBSE_PERM	15007		/* No permission */
+#define PBSE_BADHOST	15008		/* access from host not allowed */
+#define PBSE_JOBEXIST	15009		/* job already exists */
+#define PBSE_SYSTEM	15010		/* system error occurred */
+#define PBSE_INTERNAL	15011		/* internal server error occurred */
+#define PBSE_REGROUTE	15012		/* parent job of dependent in rte que */
+#define PBSE_UNKSIG	15013		/* unknown signal name */
+#define PBSE_BADATVAL	15014		/* bad attribute value */
+#define PBSE_MODATRRUN	15015		/* Cannot modify attrib in run state */
+#define PBSE_BADSTATE	15016		/* request invalid for job state */
+#define PBSE_UNKQUE	15018		/* Unknown queue name */
+#define PBSE_BADCRED	15019		/* Invalid Credential in request */
+#define PBSE_EXPIRED	15020		/* Expired Credential in request */
+#define PBSE_QUNOENB	15021		/* Queue not enabled */
+#define PBSE_QACESS	15022		/* No access permission for queue */
+#define PBSE_BADUSER	15023		/* Bad user - no password entry */
+#define PBSE_HOPCOUNT	15024		/* Max hop count exceeded */
+#define PBSE_QUEEXIST	15025		/* Queue already exists */
+#define PBSE_ATTRTYPE	15026		/* incompatable queue attribute type */
+#define PBSE_QUEBUSY	15027		/* Queue Busy (not empty) */
+#define PBSE_QUENBIG	15028		/* Queue name too long */
+#define PBSE_NOSUP	15029		/* Feature/function not supported */
+#define PBSE_QUENOEN	15030		/* Cannot enable queue,needs add def */
+#define PBSE_PROTOCOL	15031		/* Protocol (ASN.1) error */
+#define PBSE_BADATLST	15032		/* Bad attribute list structure */
+#define PBSE_NOCONNECTS	15033		/* No free connections */
+#define PBSE_NOSERVER	15034		/* No server to connect to */
+#define PBSE_UNKRESC	15035		/* Unknown resource */
+#define PBSE_EXCQRESC	15036		/* Job exceeds Queue resource limits */
+#define PBSE_QUENODFLT	15037		/* No Default Queue Defined */
+#define PBSE_NORERUN	15038		/* Job Not Rerunnable */
+#define PBSE_ROUTEREJ	15039		/* Route rejected by all destinations */
+#define PBSE_ROUTEEXPD	15040		/* Time in Route Queue Expired */
+#define PBSE_MOMREJECT  15041		/* Request to MOM failed */
+#define PBSE_BADSCRIPT	15042		/* (qsub) cannot access script file */
+#define PBSE_STAGEIN	15043		/* Stage In of files failed */
+#define PBSE_RESCUNAV	15044		/* Resources temporarily unavailable */
+#define PBSE_BADGRP	15045		/* Bad Group specified */
+#define PBSE_MAXQUED	15046		/* Max number of jobs in queue */
+#define PBSE_CKPBSY	15047		/* Checkpoint Busy, may be retries */
+#define PBSE_EXLIMIT	15048		/* Limit exceeds allowable */
+#define PBSE_BADACCT	15049		/* Bad Account attribute value */
+#define PBSE_ALRDYEXIT	15050		/* Job already in exit state */
+#define PBSE_NOCOPYFILE	15051		/* Job files not copied */
+#define PBSE_CLEANEDOUT	15052		/* unknown job id after clean init */
+#define PBSE_NOSYNCMSTR	15053		/* No Master in Sync Set */
+#define PBSE_BADDEPEND	15054		/* Invalid dependency */
+#define PBSE_DUPLIST	15055		/* Duplicate entry in List */
+#define PBSE_DISPROTO	15056		/* Bad DIS based Request Protocol */
+#define PBSE_EXECTHERE	15057		/* cannot execute there */
+#define PBSE_SISREJECT	15058		/* sister rejected */
+#define PBSE_SISCOMM	15059		/* sister could not communicate */
+#define PBSE_SVRDOWN	15060		/* req rejected -server shutting down */
+#define PBSE_CKPSHORT	15061		/* not all tasks could checkpoint */
+#define PBSE_UNKNODE	15062		/* Named node is not in the list */
+#define PBSE_UNKNODEATR	15063		/* node-attribute not recognized */
+#define PBSE_NONODES	15064		/* Server has no node list */
+#define PBSE_NODENBIG	15065		/* Node name is too big */
+#define PBSE_NODEEXIST	15066		/* Node name already exists */
+#define PBSE_BADNDATVAL	15067		/* Bad node-attribute value */
+#define PBSE_MUTUALEX	15068		/* State values are mutually exclusive */
+#define PBSE_GMODERR	15069		/* Error(s) during global modification of nodes */
+#define PBSE_NORELYMOM	15070		/* could not contact Mom */
+#define PBSE_NOTSNODE	15071		/* no time-shared nodes */
+
+/*
+** 	Resource monitor specific
+*/
+#define PBSE_RMUNKNOWN	15201		/* resource unknown */
+#define PBSE_RMBADPARAM	15202		/* parameter could not be used */
+#define PBSE_RMNOPARAM	15203		/* a parameter needed did not exist */
+#define PBSE_RMEXIST	15204		/* something specified didn't exist */
+#define PBSE_RMSYSTEM	15205		/* a system error occured */
+#define PBSE_RMPART	15206		/* only part of reservation made */
+#define RM_ERR_UNKNOWN	PBSE_RMUNKNOWN
+#define RM_ERR_BADPARAM	PBSE_RMBADPARAM
+#define RM_ERR_NOPARAM	PBSE_RMNOPARAM
+#define RM_ERR_EXIST	PBSE_RMEXIST
+#define RM_ERR_SYSTEM	PBSE_RMSYSTEM
+
+#ifndef NULL
+#define NULL (char *)0
+#endif /* NULL */
+
+
+/* the following structure is used to tie error number      */
+/* with text to be returned to a client, see svr_messages.c */
+
+struct pbs_err_to_txt {
+  int    err_no;
+  char **err_txt;
+  };
+
+extern char *pbse_to_txt(int);
+
+extern int pbs_errno;
+
+#endif  /* END PBSE_ */
+
+
Index: trunk/src/C/pbs_ifl.h
===================================================================
--- trunk/src/C/pbs_ifl.h	(revision 300)
+++ trunk/src/C/pbs_ifl.h	(revision 300)
@@ -0,0 +1,548 @@
+/*
+ * $Id$
+ *
+*         Portable Batch System (PBS) Software License
+* 
+* Copyright (c) 1999, MRJ Technology Solutions.
+* All rights reserved.
+* 
+* Acknowledgment: The Portable Batch System Software was originally developed
+* as a joint project between the Numerical Aerospace Simulation (NAS) Systems
+* Division of NASA Ames Research Center and the National Energy Research
+* Supercomputer Center (NERSC) of Lawrence Livermore National Laboratory.
+* 
+* Redistribution of the Portable Batch System Software and use in source
+* and binary forms, with or without modification, are permitted provided
+* that the following conditions are met:
+* 
+* - Redistributions of source code must retain the above copyright and
+*   acknowledgment notices, this list of conditions and the following
+*   disclaimer.
+* 
+* - Redistributions in binary form must reproduce the above copyright and 
+*   acknowledgment notices, this list of conditions and the following
+*   disclaimer in the documentation and/or other materials provided with the
+*   distribution.
+* 
+* - All advertising materials mentioning features or use of this software must
+*   display the following acknowledgment:
+* 
+*   This product includes software developed by NASA Ames Research Center,
+*   Lawrence Livermore National Laboratory, and MRJ Technology Solutions.
+* 
+*         DISCLAIMER OF WARRANTY
+* 
+* THIS SOFTWARE IS PROVIDED BY MRJ TECHNOLOGY SOLUTIONS ("MRJ") "AS IS" WITHOUT 
+* WARRANTY OF ANY KIND, AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
+* BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
+* FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT ARE EXPRESSLY DISCLAIMED.
+* 
+* IN NO EVENT, UNLESS REQUIRED BY APPLICABLE LAW, SHALL MRJ, NASA, NOR
+* THE U.S. GOVERNMENT BE LIABLE FOR ANY DIRECT DAMAGES WHATSOEVER,
+* NOR ANY INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
+* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+* 
+* This license will be governed by the laws of the Commonwealth of Virginia,
+* without reference to its choice of law rules.
+*/
+
+/*
+ * @(#) $Id$
+ */
+
+/*    
+ *
+ *  pbs_ifl.h   
+ *
+ */
+
+/*
+ *  Changed by: Bas van der Vlies <basv@sara.nl>. 
+ *  Desc.     : removed the macro definitions so that SWIG can understand 
+ *              the header file syntax
+*/
+
+#ifndef _PBS_IFL_DEF
+#define _PBS_IFL_DEF
+
+/* Attribute Names used by user commands */
+
+#define ATTR_a "Execution_Time"
+#define ATTR_c "Checkpoint"
+#define ATTR_e "Error_Path"
+#define ATTR_f "fault_tolerant"
+#define ATTR_g "group_list"
+#define ATTR_h "Hold_Types"
+#define ATTR_j "Join_Path"
+#define ATTR_k "Keep_Files"
+#define ATTR_l "Resource_List"
+#define ATTR_m "Mail_Points"
+#define ATTR_o "Output_Path"
+#define ATTR_p "Priority"
+#define ATTR_q "destination"
+#define ATTR_r "Rerunable"
+#define ATTR_t "job_array_request"
+#define ATTR_array_id "job_array_id"
+#define ATTR_u "User_List"
+#define ATTR_v "Variable_List"
+#define ATTR_A "Account_Name"
+#define ATTR_M "Mail_Users"
+#define ATTR_N "Job_Name"
+#define ATTR_S "Shell_Path_List"
+#define ATTR_depend   "depend"
+#define ATTR_inter    "interactive"
+#define ATTR_stagein  "stagein"
+#define ATTR_stageout "stageout"
+#define ATTR_jobtype  "jobtype"
+
+/* additional job and general attribute names */
+
+#define ATTR_ctime      "ctime"
+#define ATTR_exechost   "exec_host"
+#define ATTR_mtime      "mtime"
+#define ATTR_qtime      "qtime"
+#define ATTR_session    "session_id"
+#define ATTR_euser      "euser"
+#define ATTR_egroup     "egroup"
+#define ATTR_hashname   "hashname"
+#define ATTR_hopcount   "hop_count"
+#define ATTR_security   "security"
+#define ATTR_sched_hint "sched_hint"
+#define ATTR_substate   "substate"
+#define ATTR_name       "Job_Name"
+#define ATTR_owner      "Job_Owner"
+#define ATTR_used       "resources_used"
+#define ATTR_state      "job_state"
+#define ATTR_queue      "queue"
+#define ATTR_server     "server"
+#define ATTR_maxrun     "max_running"
+#define ATTR_maxreport  "max_report"
+#define ATTR_total      "total_jobs"
+#define ATTR_comment    "comment"
+#define ATTR_cookie     "cookie"
+#define ATTR_qrank      "queue_rank"
+#define ATTR_altid      "alt_id"
+#define ATTR_etime      "etime"
+#define ATTR_exitstat   "exit_status"
+#define ATTR_forwardx11 "forward_x11"
+#define ATTR_submit_args "submit_args"
+#define ATTR_tokens     "tokens"
+#define ATTR_netcounter "net_counter"
+#define ATTR_umask      "umask"
+#define ATTR_start_time "start_time"
+#define ATTR_start_count "start_count"
+#define ATTR_checkpoint_dir  "checkpoint_dir"    /* user specified directory for checkpoint files */
+#define ATTR_checkpoint_name  "checkpoint_name"   /* user specified name of checkpoint file */
+#define ATTR_checkpoint_time  "checkpoint_time"   /* timestamp of start of last checkpoint */
+#define ATTR_checkpoint_restart_status  "checkpoint_restart_status"   /* checkpoint restart status */
+#define ATTR_restart_name  "restart_name"   /* saved name of checkpoint restart file */
+#define ATTR_comp_time   "comp_time"
+#define ATTR_reported    "reported"
+#define ATTR_intcmd      "inter_cmd"
+
+#ifdef USEJOBCREATE
+#define ATTR_pagg         "pagg_id"
+#endif /* USEJOBCREATE */
+
+/* additional queue attributes names */
+
+#define ATTR_aclgren    "acl_group_enable"
+#define ATTR_aclgroup   "acl_groups"
+#define ATTR_aclhten    "acl_host_enable"
+#define ATTR_aclhost    "acl_hosts"
+#define ATTR_acluren    "acl_user_enable"
+#define ATTR_acluser    "acl_users"
+#define ATTR_altrouter  "alt_router"
+#define ATTR_checkpoint_min  "checkpoint_min"
+#define ATTR_enable     "enabled"
+#define ATTR_fromroute  "from_route_only"
+#define ATTR_hostlist    "hostlist"         /* TORQUE only */
+#define ATTR_killdelay   "kill_delay"
+#define ATTR_maxgrprun   "max_group_run"
+#define ATTR_maxque      "max_queuable"
+#define ATTR_maxuserque  "max_user_queuable"
+#define ATTR_maxuserrun  "max_user_run"
+#define ATTR_qtype       "queue_type"
+#define ATTR_rescassn    "resources_assigned"
+#define ATTR_rescdflt    "resources_default"
+#define ATTR_rescmax     "resources_max"
+#define ATTR_rescmin     "resources_min"
+#define ATTR_rerunnable  "restartable"      /* TORQUE only */
+#define ATTR_rndzretry   "rendezvous_retry"
+#define ATTR_routedest   "route_destinations"
+#define ATTR_routeheld   "route_held_jobs"
+#define ATTR_routewait   "route_waiting_jobs"
+#define ATTR_routeretry  "route_retry_time"
+#define ATTR_routelife   "route_lifetime"
+#define ATTR_rsvexpdt    "reserved_expedite"
+#define ATTR_rsvsync     "reserved_sync"
+#define ATTR_start       "started"
+#define ATTR_count       "state_count"
+#define ATTR_number      "number_jobs"
+#define ATTR_acllogic    "acl_logic_or"
+#define ATTR_aclgrpslpy  "acl_group_sloppy"
+#define ATTR_keepcompleted "keep_completed"
+#define ATTR_disallowedtypes "disallowed_types"
+#define ATTR_is_transit  "is_transit"
+
+/* additional server attributes names */
+
+/* NOTE: steps for adding new attribute described in ??? */
+/*  - create #define ATTR_* in include/pbs_ifl.h
+    - insert SRV_ATR_* in include/server.h
+    - add ATTR_* in include/qmgr_svr_public.h
+    - insert structure in server/svr_attr_def.c
+        NOTE:  structure must be in same relative position as SRV_ATR_*
+    - insert usage code in proper location
+*/
+
+#define ATTR_aclroot     "acl_roots"
+#define ATTR_managers    "managers"
+#define ATTR_dfltque     "default_queue"
+#define ATTR_dispsvrsuffix "display_job_server_suffix"
+#define ATTR_jobsuffixalias "job_suffix_alias"
+#define ATTR_defnode     "default_node"
+#define ATTR_locsvrs     "location_servers"
+#define ATTR_logevents   "log_events"
+#define ATTR_logfile     "log_file"
+#define ATTR_loglevel    "log_level"
+#define ATTR_mailfrom    "mail_from"
+#define ATTR_nodepack    "node_pack"
+#define ATTR_nodesuffix  "node_suffix"
+#define ATTR_operators   "operators"
+#define ATTR_queryother  "query_other_jobs"
+#define ATTR_resccost    "resources_cost"
+#define ATTR_rescavail   "resources_available"
+#define ATTR_schedit     "scheduler_iteration"
+#define ATTR_scheduling  "scheduling"
+#define ATTR_status      "server_state"
+#define ATTR_syscost     "system_cost"
+#define ATTR_pingrate    "node_ping_rate"
+#define ATTR_ndchkrate   "node_check_rate"
+#define ATTR_tcptimeout  "tcp_timeout"
+#define ATTR_jobstatrate "job_stat_rate"
+#define ATTR_polljobs    "poll_jobs"
+#define ATTR_downonerror "down_on_error"
+#define ATTR_disableserveridcheck "disable_server_id_check"
+#define ATTR_jobnanny    "job_nanny"
+#define ATTR_ownerpurge  "owner_purge"
+#define ATTR_qcqlimits   "queue_centric_limits"
+#define ATTR_momjobsync  "mom_job_sync"
+#define ATTR_maildomain  "mail_domain"
+#define ATTR_pbsversion  "pbs_version"
+#define ATTR_submithosts "submit_hosts"
+#define ATTR_allownodesubmit  "allow_node_submit"
+#define ATTR_allowproxyuser   "allow_proxy_user"
+#define ATTR_autonodenp  "auto_node_np"
+#define ATTR_servername  "server_name"
+#define ATTR_logfilemaxsize "log_file_max_size"
+#define ATTR_logfilerolldepth "log_file_roll_depth"
+#define ATTR_logkeepdays  "log_keep_days"
+#define ATTR_nextjobnum   "next_job_number"
+#define ATTR_extraresc    "extra_resc"
+#define ATTR_schedversion "sched_version"
+#define ATTR_acctkeepdays "accounting_keep_days"
+#define ATTR_lockfile "lock_file"
+#define ATTR_credentiallifetime "credential_lifetime"
+#define ATTR_jobmustreport "job_must_report"
+#define ATTR_LockfileUpdateTime "lock_file_update_time"
+#define ATTR_LockfileCheckTime "lock_file_check_time"
+#define ATTR_npdefault  "np_default"
+#define ATTR_jobstarttimeout "job_start_timeout"
+
+/* additional node "attributes" names */
+
+#define ATTR_NODE_state         "state"
+#define ATTR_NODE_np            "np"
+#define ATTR_NODE_properties    "properties"
+#define ATTR_NODE_ntype         "ntype"
+#define ATTR_NODE_jobs          "jobs"
+#define ATTR_NODE_status        "status"
+#define ATTR_NODE_note          "note"
+
+/* notification email formating */
+#define ATTR_mailsubjectfmt "mail_subject_fmt"
+#define ATTR_mailbodyfmt    "mail_body_fmt"
+
+
+/* various attribute values */
+
+#define CHECKPOINT_UNSPECIFIED "u"
+#define NO_HOLD "n"
+#define NO_JOIN "n"
+#define NO_KEEP "n"
+#define MAIL_AT_ABORT "a"
+
+
+#define DELDELAY  "deldelay=" /* see qdel.c */
+#define DELPURGE  "delpurge="   /* see qdel.c */
+#define PURGECOMP  "purgecomplete="   /* see req_delete.c */
+#define EXECQUEONLY  "exec_queue_only"   /* see req_stat.c */
+#define RERUNFORCE "force"
+
+#define USER_HOLD "u"
+#define OTHER_HOLD "o"
+#define SYSTEM_HOLD "s"
+
+/* node-attribute values (state,ntype) */
+
+#define ND_free   "free"
+#define ND_offline  "offline"
+#define ND_down   "down"
+#define ND_reserve  "reserve"
+#define ND_job_exclusive "job-exclusive"
+#define ND_job_sharing  "job-sharing"
+#define ND_busy   "busy"
+#define ND_state_unknown "state-unknown"
+#define ND_timeshared  "time-shared"
+#define ND_cluster  "cluster"
+
+/* queue disallowed types */
+#define Q_DT_batch              "batch"
+#define Q_DT_interactive        "interactive"
+#define Q_DT_rerunable          "rerunable"
+#define Q_DT_nonrerunable       "nonrerunable"
+#define Q_DT_fault_tolerant     "fault_tolerant"
+#define Q_DT_fault_intolerant   "fault_intolerant"
+#define Q_DT_job_array          "job_array"
+
+/*constant related to sum of string lengths for above strings*/
+#define MAX_ENCODE_BFR  100
+
+#define MGR_CMD_CREATE 0
+#define MGR_CMD_DELETE 1
+#define MGR_CMD_SET 2
+#define MGR_CMD_UNSET 3
+#define MGR_CMD_LIST 4
+#define MGR_CMD_PRINT 5
+#define MGR_CMD_ACTIVE 6
+
+#define MGR_OBJ_NONE -1
+#define MGR_OBJ_SERVER  0
+#define MGR_OBJ_QUEUE   1
+#define MGR_OBJ_JOB 2
+#define MGR_OBJ_NODE 3
+
+/* Misc defines for various requests */
+
+#define MSG_OUT 1
+#define MSG_ERR 2
+
+#define SHUT_SIG -1
+#define SHUT_IMMEDIATE 0
+#define SHUT_DELAY 1
+#define SHUT_QUICK 2
+
+#define SIG_RESUME "resume"
+#define SIG_SUSPEND "suspend"
+
+
+/* WARNING: be careful changing these PBS_MAX* values.  They can result in a
+   change in the structure of the .JB file, and binary incompatibilities between
+   versions of TORQUE.  Do not change in a -fixes branch */
+   
+   
+
+#define PBS_MAXHOSTNAME  1024 /* max host name length */
+#ifndef MAXPATHLEN
+#define MAXPATHLEN  1024 /* max path name length */
+#endif
+#ifndef MAXNAMLEN
+#define MAXNAMLEN  255
+#endif
+#define MAX_NOTE  256 /* max node note length */
+#define MAX_NOTE_STR  "256" /* max node note length as a string literal (this MUST match MAX_NOTE) */
+
+#define PBS_MAXUSER  32 /* max user name length */
+#define PBS_MAXGRPN  16 /* max group name length */
+#define PBS_MAXQUEUENAME 15 /* max queue name length */
+#define PBS_MAXSERVERNAME PBS_MAXHOSTNAME /* max server name length */
+#define PBS_MAXJOBARRAYLEN      6       /* number of characters allowed in jobarray portion of job id, including '-' */
+#define PBS_MAXSEQNUM  8 /* max sequence number length */
+#define PBS_MAXPORTNUM  5 /* udp/tcp port numbers max=16 bits */
+#define PBS_MAXJOBARRAY  99999
+#define PBS_MAXSVRJOBID  (PBS_MAXSEQNUM + PBS_MAXSERVERNAME + PBS_MAXPORTNUM + PBS_MAXJOBARRAYLEN + 2 ) /* server job id size */
+#define PBS_MAXCLTJOBID  (PBS_MAXSVRJOBID + PBS_MAXSERVERNAME + PBS_MAXPORTNUM + PBS_MAXJOBARRAYLEN + 2) /* client job id size */
+#define PBS_MAXDEST  1024  /* destination size -- increased from 256 */
+#define PBS_MAXROUTEDEST (PBS_MAXQUEUENAME + PBS_MAXSERVERNAME + PBS_MAXPORTNUM + 2) /* destination size */
+#define PBS_USE_IFF  1 /* pbs_connect() to call pbs_iff */
+#define PBS_INTERACTIVE  1 /* Support of Interactive jobs */
+#define PBS_TERM_BUF_SZ  80 /* Interactive term buffer size */
+#define PBS_TERM_CCA  6 /* Interactive term cntl char array */
+
+/* constants used to indicate version of job ji_qs struct written to disk.
+   starting with 2.4.0 we stopped encoding the torque version number into the 
+   hex value e.g. 0x00020300 for torque v2.3.0. Now we just increment a value 
+   which is added to the last version encoded that way */
+#define PBS_QS_VERSION_BASE 0x00020300 /* magic number do not change */
+#define PBS_QS_VERSION_INT 1 /* increment this version number with every change to the ji_qs struct */
+#define PBS_QS_VERSION  (PBS_QS_VERSION_BASE + PBS_QS_VERSION_INT) /* version number saved in the ji_qs struct */
+
+/* someday the PBS_*_PORT definition will go away and only the */
+/* PBS_*_SERVICE_NAME form will be used, maybe   */
+
+#define PBS_BATCH_SERVICE_NAME  "pbs"
+
+#ifndef PBS_BATCH_SERVICE_PORT
+#define PBS_BATCH_SERVICE_PORT  15001
+#endif /* PBS_BATCH_SERVICE_PORT */
+
+#define PBS_BATCH_SERVICE_NAME_DIS "pbs_dis" /* new DIS port   */
+
+#ifndef PBS_BATCH_SERVICE_PORT_DIS
+#define PBS_BATCH_SERVICE_PORT_DIS 15001  /* new DIS port   */
+#endif /* PBS_BATCH_SERVICE_PORT_DIS */
+
+#define PBS_MOM_SERVICE_NAME  "pbs_mom"
+
+#ifndef PBS_MOM_SERVICE_PORT
+#define PBS_MOM_SERVICE_PORT  15002
+#endif /* PBS_MOM_SERVICE_PORT */
+
+#define PBS_MANAGER_SERVICE_NAME "pbs_resmon"
+
+#ifndef PBS_MANAGER_SERVICE_PORT
+#define PBS_MANAGER_SERVICE_PORT 15003
+#endif /* PBS_MANAGER_SERVICE_PORT */
+
+#define PBS_SCHEDULER_SERVICE_NAME "pbs_sched"
+
+#ifndef PBS_SCHEDULER_SERVICE_PORT
+#define PBS_SCHEDULER_SERVICE_PORT 15004
+#endif /* PBS_SCHEDULER_SERVICE_PORT */
+
+/*
+ * Other misc checkpoint defines
+ */
+#define CHECKPOINTHOLD "checkpoint_hold"
+#define CHECKPOINTCONT "checkpoint_cont"
+#define MOM_DEFAULT_CHECKPOINT_DIR "$MOMDEFAULTCHECKPOINTDIR$"
+
+
+enum batch_op { SET, UNSET, INCR, DECR, EQ, NE, GE, GT, LE, LT, DFLT, MERGE };
+
+/*
+** This structure is identical to attropl so they can be used
+** interchangably.  The op field is not used.
+*/
+
+struct attrl
+  {
+  struct attrl  *next;
+  char          *name;
+  char          *resource;
+  char          *value;
+  enum batch_op  op; /* not used */
+  };
+
+struct attropl
+  {
+  struct attropl *next;
+  char   *name;
+  char   *resource;
+  char   *value;
+  enum batch_op   op;
+  };
+
+struct batch_status
+  {
+  struct batch_status *next;
+  char                *name;
+  struct attrl        *attribs;
+  char                *text;
+  };
+
+
+
+
+/* Resource Reservation Information */
+typedef int resource_t;  /* resource reservation handle */
+
+#define RESOURCE_T_NULL  (resource_t)0
+#define RESOURCE_T_ALL  (resource_t)-1
+
+extern int pbs_errno;  /* error number */
+
+extern char *pbs_server; /* server attempted to connect | connected to */
+/* see pbs_connect(3B)         */
+
+extern char *avail(int connect, char *resc);
+extern int pbs_asyrunjob(int c, char *jobid, char *location, char *extend);
+extern int pbs_alterjob(int connect, char *job_id, struct attrl *ATTRL, char *extend);
+extern int pbs_connect(char *server);
+extern int pbs_query_max_connections(void);
+extern char *pbs_default(void);
+
+extern int pbs_deljob(int connect, char *job_id, char *extend);
+extern int pbs_disconnect(int connect);
+extern char *pbs_geterrmsg(int connect);
+extern int pbs_holdjob(int connect, char *job_id, char *hold_type, char *extend);
+extern char *pbs_locjob(int connect, char *job_id, char *extend);
+
+extern int pbs_manager(int connect, int command, int obj_type, char *obj_name,
+	struct attropl *ATTROPL, char *extend);
+	
+extern int pbs_movejob(int connect, char *job_id, char *destination, char *extend);
+	
+extern int pbs_msgjob(int connect, char *job_id, int file, char *message, char *extend);
+
+extern int pbs_orderjob (int connect, char *job1, char *job2, char *extend);
+
+extern int pbs_rescquery(int connect, char **CHAR, int nresc, int *avail,
+	int *alloc, int *resv, int *down);
+
+extern int pbs_rescreserve(int connect, char **CHAR, int nresc, resource_t *phandle);
+
+extern int pbs_rescrelease(int connect, resource_t rhandle);
+
+extern int pbs_rerunjob(int connect, char *job_id, char *extend);
+
+extern int pbs_rlsjob(int connect, char *job_id, char *hold_type, char *extend);
+
+extern int pbs_runjob(int connect, char *jobid, char *loc, char *extend);
+
+extern char **pbs_selectjob(int connect, struct attropl *ATTROPL, char *extend);
+
+extern int pbs_sigjob(int connect, char *job_id, char *signal, char *extend);
+
+
+extern void pbs_statfree(struct batch_status *BATCH_STATUS);
+
+// Function does not exitst Bas van der Vlies
+// 
+// extern struct batch_status *pbs_statdest(int connect, char *id, char *extend);
+
+extern struct batch_status *pbs_statjob(int connect, char *id, struct attrl *ATTRL, char *extend);
+
+extern struct batch_status *pbs_selstat(int connect, struct attropl *ATTROPL, char *extend);
+
+extern struct batch_status *pbs_statque(int connect, char *id, struct attrl *ATTRL, char *extend); 
+
+extern struct batch_status *pbs_statserver(int connect, struct attrl *ATTRL, char *extend);
+
+extern struct batch_status *pbs_statnode(int connect, char *id, struct attrl *ATTRL, char *extend);
+
+extern char *pbs_submit(int connect, struct attropl *ATTROPL, char *script,
+	char *destination, char *extend);
+	
+extern int pbs_terminate(int connect, int manner, char *extend);
+
+extern int totpool(int connect, int update);
+
+extern int usepool(int connect, int update);
+
+#ifdef TORQUE_2_4
+extern char *pbs_fbserver(void);
+extern char *pbs_get_server_list(void);
+extern int pbs_sigjobasync(int connect, char *job_id, char *signal, char *extend);
+extern int pbs_alterjob_async(int connect, char *job_id, struct attrl *ATTRL, char *extend);
+extern int pbs_checkpointjob(int connect, char *job_id, char *extend);
+#endif
+
+#endif	/* _PBS_IFL_DEF */
+
+/*  end of pbs_ifl.h  */
Index: trunk/src/C/pbs_wrap.c
===================================================================
--- trunk/src/C/pbs_wrap.c	(revision 300)
+++ trunk/src/C/pbs_wrap.c	(revision 300)
@@ -0,0 +1,8717 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 1.3.40
+ * 
+ * This file is not intended to be easily readable and contains a number of 
+ * coding conventions designed to improve portability and efficiency. Do not make
+ * changes to this file unless you know what you are doing--modify the SWIG 
+ * interface file instead. 
+ * ----------------------------------------------------------------------------- */
+
+#define SWIGPYTHON
+#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
+
+/* -----------------------------------------------------------------------------
+ *  This section contains generic SWIG labels for method/variable
+ *  declarations/attributes, and other compiler dependent labels.
+ * ----------------------------------------------------------------------------- */
+
+/* template workaround for compilers that cannot correctly implement the C++ standard */
+#ifndef SWIGTEMPLATEDISAMBIGUATOR
+# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
+#  define SWIGTEMPLATEDISAMBIGUATOR template
+# elif defined(__HP_aCC)
+/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
+/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
+#  define SWIGTEMPLATEDISAMBIGUATOR template
+# else
+#  define SWIGTEMPLATEDISAMBIGUATOR
+# endif
+#endif
+
+/* inline attribute */
+#ifndef SWIGINLINE
+# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
+#   define SWIGINLINE inline
+# else
+#   define SWIGINLINE
+# endif
+#endif
+
+/* attribute recognised by some compilers to avoid 'unused' warnings */
+#ifndef SWIGUNUSED
+# if defined(__GNUC__)
+#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
+#     define SWIGUNUSED __attribute__ ((__unused__)) 
+#   else
+#     define SWIGUNUSED
+#   endif
+# elif defined(__ICC)
+#   define SWIGUNUSED __attribute__ ((__unused__)) 
+# else
+#   define SWIGUNUSED 
+# endif
+#endif
+
+#ifndef SWIG_MSC_UNSUPPRESS_4505
+# if defined(_MSC_VER)
+#   pragma warning(disable : 4505) /* unreferenced local function has been removed */
+# endif 
+#endif
+
+#ifndef SWIGUNUSEDPARM
+# ifdef __cplusplus
+#   define SWIGUNUSEDPARM(p)
+# else
+#   define SWIGUNUSEDPARM(p) p SWIGUNUSED 
+# endif
+#endif
+
+/* internal SWIG method */
+#ifndef SWIGINTERN
+# define SWIGINTERN static SWIGUNUSED
+#endif
+
+/* internal inline SWIG method */
+#ifndef SWIGINTERNINLINE
+# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
+#endif
+
+/* exporting methods */
+#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
+#  ifndef GCC_HASCLASSVISIBILITY
+#    define GCC_HASCLASSVISIBILITY
+#  endif
+#endif
+
+#ifndef SWIGEXPORT
+# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
+#   if defined(STATIC_LINKED)
+#     define SWIGEXPORT
+#   else
+#     define SWIGEXPORT __declspec(dllexport)
+#   endif
+# else
+#   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
+#     define SWIGEXPORT __attribute__ ((visibility("default")))
+#   else
+#     define SWIGEXPORT
+#   endif
+# endif
+#endif
+
+/* calling conventions for Windows */
+#ifndef SWIGSTDCALL
+# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
+#   define SWIGSTDCALL __stdcall
+# else
+#   define SWIGSTDCALL
+# endif 
+#endif
+
+/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
+#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
+# define _CRT_SECURE_NO_DEPRECATE
+#endif
+
+/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
+#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
+# define _SCL_SECURE_NO_DEPRECATE
+#endif
+
+
+
+/* Python.h has to appear first */
+#include <Python.h>
+
+/* -----------------------------------------------------------------------------
+ * swigrun.swg
+ *
+ * This file contains generic C API SWIG runtime support for pointer
+ * type checking.
+ * ----------------------------------------------------------------------------- */
+
+/* This should only be incremented when either the layout of swig_type_info changes,
+   or for whatever reason, the runtime changes incompatibly */
+#define SWIG_RUNTIME_VERSION "4"
+
+/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
+#ifdef SWIG_TYPE_TABLE
+# define SWIG_QUOTE_STRING(x) #x
+# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
+# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
+#else
+# define SWIG_TYPE_TABLE_NAME
+#endif
+
+/*
+  You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
+  creating a static or dynamic library from the SWIG runtime code.
+  In 99.9% of the cases, SWIG just needs to declare them as 'static'.
+  
+  But only do this if strictly necessary, ie, if you have problems
+  with your compiler or suchlike.
+*/
+
+#ifndef SWIGRUNTIME
+# define SWIGRUNTIME SWIGINTERN
+#endif
+
+#ifndef SWIGRUNTIMEINLINE
+# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
+#endif
+
+/*  Generic buffer size */
+#ifndef SWIG_BUFFER_SIZE
+# define SWIG_BUFFER_SIZE 1024
+#endif
+
+/* Flags for pointer conversions */
+#define SWIG_POINTER_DISOWN        0x1
+#define SWIG_CAST_NEW_MEMORY       0x2
+
+/* Flags for new pointer objects */
+#define SWIG_POINTER_OWN           0x1
+
+
+/* 
+   Flags/methods for returning states.
+   
+   The SWIG conversion methods, as ConvertPtr, return and integer 
+   that tells if the conversion was successful or not. And if not,
+   an error code can be returned (see swigerrors.swg for the codes).
+   
+   Use the following macros/flags to set or process the returning
+   states.
+   
+   In old versions of SWIG, code such as the following was usually written:
+
+     if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
+       // success code
+     } else {
+       //fail code
+     }
+
+   Now you can be more explicit:
+
+    int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
+    if (SWIG_IsOK(res)) {
+      // success code
+    } else {
+      // fail code
+    }
+
+   which is the same really, but now you can also do
+
+    Type *ptr;
+    int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
+    if (SWIG_IsOK(res)) {
+      // success code
+      if (SWIG_IsNewObj(res) {
+        ...
+	delete *ptr;
+      } else {
+        ...
+      }
+    } else {
+      // fail code
+    }
+    
+   I.e., now SWIG_ConvertPtr can return new objects and you can
+   identify the case and take care of the deallocation. Of course that
+   also requires SWIG_ConvertPtr to return new result values, such as
+
+      int SWIG_ConvertPtr(obj, ptr,...) {         
+        if (<obj is ok>) {			       
+          if (<need new object>) {		       
+            *ptr = <ptr to new allocated object>; 
+            return SWIG_NEWOBJ;		       
+          } else {				       
+            *ptr = <ptr to old object>;	       
+            return SWIG_OLDOBJ;		       
+          } 				       
+        } else {				       
+          return SWIG_BADOBJ;		       
+        }					       
+      }
+
+   Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
+   more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
+   SWIG errors code.
+
+   Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
+   allows to return the 'cast rank', for example, if you have this
+
+       int food(double)
+       int fooi(int);
+
+   and you call
+ 
+      food(1)   // cast rank '1'  (1 -> 1.0)
+      fooi(1)   // cast rank '0'
+
+   just use the SWIG_AddCast()/SWIG_CheckState()
+*/
+
+#define SWIG_OK                    (0) 
+#define SWIG_ERROR                 (-1)
+#define SWIG_IsOK(r)               (r >= 0)
+#define SWIG_ArgError(r)           ((r != SWIG_ERROR) ? r : SWIG_TypeError)  
+
+/* The CastRankLimit says how many bits are used for the cast rank */
+#define SWIG_CASTRANKLIMIT         (1 << 8)
+/* The NewMask denotes the object was created (using new/malloc) */
+#define SWIG_NEWOBJMASK            (SWIG_CASTRANKLIMIT  << 1)
+/* The TmpMask is for in/out typemaps that use temporal objects */
+#define SWIG_TMPOBJMASK            (SWIG_NEWOBJMASK << 1)
+/* Simple returning values */
+#define SWIG_BADOBJ                (SWIG_ERROR)
+#define SWIG_OLDOBJ                (SWIG_OK)
+#define SWIG_NEWOBJ                (SWIG_OK | SWIG_NEWOBJMASK)
+#define SWIG_TMPOBJ                (SWIG_OK | SWIG_TMPOBJMASK)
+/* Check, add and del mask methods */
+#define SWIG_AddNewMask(r)         (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
+#define SWIG_DelNewMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
+#define SWIG_IsNewObj(r)           (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
+#define SWIG_AddTmpMask(r)         (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
+#define SWIG_DelTmpMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
+#define SWIG_IsTmpObj(r)           (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
+
+/* Cast-Rank Mode */
+#if defined(SWIG_CASTRANK_MODE)
+#  ifndef SWIG_TypeRank
+#    define SWIG_TypeRank             unsigned long
+#  endif
+#  ifndef SWIG_MAXCASTRANK            /* Default cast allowed */
+#    define SWIG_MAXCASTRANK          (2)
+#  endif
+#  define SWIG_CASTRANKMASK          ((SWIG_CASTRANKLIMIT) -1)
+#  define SWIG_CastRank(r)           (r & SWIG_CASTRANKMASK)
+SWIGINTERNINLINE int SWIG_AddCast(int r) { 
+  return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
+}
+SWIGINTERNINLINE int SWIG_CheckState(int r) { 
+  return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; 
+}
+#else /* no cast-rank mode */
+#  define SWIG_AddCast
+#  define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
+#endif
+
+
+#include <string.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef void *(*swig_converter_func)(void *, int *);
+typedef struct swig_type_info *(*swig_dycast_func)(void **);
+
+/* Structure to store information on one type */
+typedef struct swig_type_info {
+  const char             *name;			/* mangled name of this type */
+  const char             *str;			/* human readable name of this type */
+  swig_dycast_func        dcast;		/* dynamic cast function down a hierarchy */
+  struct swig_cast_info  *cast;			/* linked list of types that can cast into this type */
+  void                   *clientdata;		/* language specific type data */
+  int                    owndata;		/* flag if the structure owns the clientdata */
+} swig_type_info;
+
+/* Structure to store a type and conversion function used for casting */
+typedef struct swig_cast_info {
+  swig_type_info         *type;			/* pointer to type that is equivalent to this type */
+  swig_converter_func     converter;		/* function to cast the void pointers */
+  struct swig_cast_info  *next;			/* pointer to next cast in linked list */
+  struct swig_cast_info  *prev;			/* pointer to the previous cast */
+} swig_cast_info;
+
+/* Structure used to store module information
+ * Each module generates one structure like this, and the runtime collects
+ * all of these structures and stores them in a circularly linked list.*/
+typedef struct swig_module_info {
+  swig_type_info         **types;		/* Array of pointers to swig_type_info structures that are in this module */
+  size_t                 size;		        /* Number of types in this module */
+  struct swig_module_info *next;		/* Pointer to next element in circularly linked list */
+  swig_type_info         **type_initial;	/* Array of initially generated type structures */
+  swig_cast_info         **cast_initial;	/* Array of initially generated casting structures */
+  void                    *clientdata;		/* Language specific module data */
+} swig_module_info;
+
+/* 
+  Compare two type names skipping the space characters, therefore
+  "char*" == "char *" and "Class<int>" == "Class<int >", etc.
+
+  Return 0 when the two name types are equivalent, as in
+  strncmp, but skipping ' '.
+*/
+SWIGRUNTIME int
+SWIG_TypeNameComp(const char *f1, const char *l1,
+		  const char *f2, const char *l2) {
+  for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
+    while ((*f1 == ' ') && (f1 != l1)) ++f1;
+    while ((*f2 == ' ') && (f2 != l2)) ++f2;
+    if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
+  }
+  return (int)((l1 - f1) - (l2 - f2));
+}
+
+/*
+  Check type equivalence in a name list like <name1>|<name2>|...
+  Return 0 if not equal, 1 if equal
+*/
+SWIGRUNTIME int
+SWIG_TypeEquiv(const char *nb, const char *tb) {
+  int equiv = 0;
+  const char* te = tb + strlen(tb);
+  const char* ne = nb;
+  while (!equiv && *ne) {
+    for (nb = ne; *ne; ++ne) {
+      if (*ne == '|') break;
+    }
+    equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
+    if (*ne) ++ne;
+  }
+  return equiv;
+}
+
+/*
+  Check type equivalence in a name list like <name1>|<name2>|...
+  Return 0 if equal, -1 if nb < tb, 1 if nb > tb
+*/
+SWIGRUNTIME int
+SWIG_TypeCompare(const char *nb, const char *tb) {
+  int equiv = 0;
+  const char* te = tb + strlen(tb);
+  const char* ne = nb;
+  while (!equiv && *ne) {
+    for (nb = ne; *ne; ++ne) {
+      if (*ne == '|') break;
+    }
+    equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
+    if (*ne) ++ne;
+  }
+  return equiv;
+}
+
+
+/*
+  Check the typename
+*/
+SWIGRUNTIME swig_cast_info *
+SWIG_TypeCheck(const char *c, swig_type_info *ty) {
+  if (ty) {
+    swig_cast_info *iter = ty->cast;
+    while (iter) {
+      if (strcmp(iter->type->name, c) == 0) {
+        if (iter == ty->cast)
+          return iter;
+        /* Move iter to the top of the linked list */
+        iter->prev->next = iter->next;
+        if (iter->next)
+          iter->next->prev = iter->prev;
+        iter->next = ty->cast;
+        iter->prev = 0;
+        if (ty->cast) ty->cast->prev = iter;
+        ty->cast = iter;
+        return iter;
+      }
+      iter = iter->next;
+    }
+  }
+  return 0;
+}
+
+/* 
+  Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
+*/
+SWIGRUNTIME swig_cast_info *
+SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
+  if (ty) {
+    swig_cast_info *iter = ty->cast;
+    while (iter) {
+      if (iter->type == from) {
+        if (iter == ty->cast)
+          return iter;
+        /* Move iter to the top of the linked list */
+        iter->prev->next = iter->next;
+        if (iter->next)
+          iter->next->prev = iter->prev;
+        iter->next = ty->cast;
+        iter->prev = 0;
+        if (ty->cast) ty->cast->prev = iter;
+        ty->cast = iter;
+        return iter;
+      }
+      iter = iter->next;
+    }
+  }
+  return 0;
+}
+
+/*
+  Cast a pointer up an inheritance hierarchy
+*/
+SWIGRUNTIMEINLINE void *
+SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
+  return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
+}
+
+/* 
+   Dynamic pointer casting. Down an inheritance hierarchy
+*/
+SWIGRUNTIME swig_type_info *
+SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
+  swig_type_info *lastty = ty;
+  if (!ty || !ty->dcast) return ty;
+  while (ty && (ty->dcast)) {
+    ty = (*ty->dcast)(ptr);
+    if (ty) lastty = ty;
+  }
+  return lastty;
+}
+
+/*
+  Return the name associated with this type
+*/
+SWIGRUNTIMEINLINE const char *
+SWIG_TypeName(const swig_type_info *ty) {
+  return ty->name;
+}
+
+/*
+  Return the pretty name associated with this type,
+  that is an unmangled type name in a form presentable to the user.
+*/
+SWIGRUNTIME const char *
+SWIG_TypePrettyName(const swig_type_info *type) {
+  /* The "str" field contains the equivalent pretty names of the
+     type, separated by vertical-bar characters.  We choose
+     to print the last name, as it is often (?) the most
+     specific. */
+  if (!type) return NULL;
+  if (type->str != NULL) {
+    const char *last_name = type->str;
+    const char *s;
+    for (s = type->str; *s; s++)
+      if (*s == '|') last_name = s+1;
+    return last_name;
+  }
+  else
+    return type->name;
+}
+
+/* 
+   Set the clientdata field for a type
+*/
+SWIGRUNTIME void
+SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
+  swig_cast_info *cast = ti->cast;
+  /* if (ti->clientdata == clientdata) return; */
+  ti->clientdata = clientdata;
+  
+  while (cast) {
+    if (!cast->converter) {
+      swig_type_info *tc = cast->type;
+      if (!tc->clientdata) {
+	SWIG_TypeClientData(tc, clientdata);
+      }
+    }    
+    cast = cast->next;
+  }
+}
+SWIGRUNTIME void
+SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
+  SWIG_TypeClientData(ti, clientdata);
+  ti->owndata = 1;
+}
+  
+/*
+  Search for a swig_type_info structure only by mangled name
+  Search is a O(log #types)
+  
+  We start searching at module start, and finish searching when start == end.  
+  Note: if start == end at the beginning of the function, we go all the way around
+  the circular list.
+*/
+SWIGRUNTIME swig_type_info *
+SWIG_MangledTypeQueryModule(swig_module_info *start, 
+                            swig_module_info *end, 
+		            const char *name) {
+  swig_module_info *iter = start;
+  do {
+    if (iter->size) {
+      register size_t l = 0;
+      register size_t r = iter->size - 1;
+      do {
+	/* since l+r >= 0, we can (>> 1) instead (/ 2) */
+	register size_t i = (l + r) >> 1; 
+	const char *iname = iter->types[i]->name;
+	if (iname) {
+	  register int compare = strcmp(name, iname);
+	  if (compare == 0) {	    
+	    return iter->types[i];
+	  } else if (compare < 0) {
+	    if (i) {
+	      r = i - 1;
+	    } else {
+	      break;
+	    }
+	  } else if (compare > 0) {
+	    l = i + 1;
+	  }
+	} else {
+	  break; /* should never happen */
+	}
+      } while (l <= r);
+    }
+    iter = iter->next;
+  } while (iter != end);
+  return 0;
+}
+
+/*
+  Search for a swig_type_info structure for either a mangled name or a human readable name.
+  It first searches the mangled names of the types, which is a O(log #types)
+  If a type is not found it then searches the human readable names, which is O(#types).
+  
+  We start searching at module start, and finish searching when start == end.  
+  Note: if start == end at the beginning of the function, we go all the way around
+  the circular list.
+*/
+SWIGRUNTIME swig_type_info *
+SWIG_TypeQueryModule(swig_module_info *start, 
+                     swig_module_info *end, 
+		     const char *name) {
+  /* STEP 1: Search the name field using binary search */
+  swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
+  if (ret) {
+    return ret;
+  } else {
+    /* STEP 2: If the type hasn't been found, do a complete search
+       of the str field (the human readable name) */
+    swig_module_info *iter = start;
+    do {
+      register size_t i = 0;
+      for (; i < iter->size; ++i) {
+	if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
+	  return iter->types[i];
+      }
+      iter = iter->next;
+    } while (iter != end);
+  }
+  
+  /* neither found a match */
+  return 0;
+}
+
+/* 
+   Pack binary data into a string
+*/
+SWIGRUNTIME char *
+SWIG_PackData(char *c, void *ptr, size_t sz) {
+  static const char hex[17] = "0123456789abcdef";
+  register const unsigned char *u = (unsigned char *) ptr;
+  register const unsigned char *eu =  u + sz;
+  for (; u != eu; ++u) {
+    register unsigned char uu = *u;
+    *(c++) = hex[(uu & 0xf0) >> 4];
+    *(c++) = hex[uu & 0xf];
+  }
+  return c;
+}
+
+/* 
+   Unpack binary data from a string
+*/
+SWIGRUNTIME const char *
+SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
+  register unsigned char *u = (unsigned char *) ptr;
+  register const unsigned char *eu = u + sz;
+  for (; u != eu; ++u) {
+    register char d = *(c++);
+    register unsigned char uu;
+    if ((d >= '0') && (d <= '9'))
+      uu = ((d - '0') << 4);
+    else if ((d >= 'a') && (d <= 'f'))
+      uu = ((d - ('a'-10)) << 4);
+    else 
+      return (char *) 0;
+    d = *(c++);
+    if ((d >= '0') && (d <= '9'))
+      uu |= (d - '0');
+    else if ((d >= 'a') && (d <= 'f'))
+      uu |= (d - ('a'-10));
+    else 
+      return (char *) 0;
+    *u = uu;
+  }
+  return c;
+}
+
+/* 
+   Pack 'void *' into a string buffer.
+*/
+SWIGRUNTIME char *
+SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
+  char *r = buff;
+  if ((2*sizeof(void *) + 2) > bsz) return 0;
+  *(r++) = '_';
+  r = SWIG_PackData(r,&ptr,sizeof(void *));
+  if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
+  strcpy(r,name);
+  return buff;
+}
+
+SWIGRUNTIME const char *
+SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
+  if (*c != '_') {
+    if (strcmp(c,"NULL") == 0) {
+      *ptr = (void *) 0;
+      return name;
+    } else {
+      return 0;
+    }
+  }
+  return SWIG_UnpackData(++c,ptr,sizeof(void *));
+}
+
+SWIGRUNTIME char *
+SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
+  char *r = buff;
+  size_t lname = (name ? strlen(name) : 0);
+  if ((2*sz + 2 + lname) > bsz) return 0;
+  *(r++) = '_';
+  r = SWIG_PackData(r,ptr,sz);
+  if (lname) {
+    strncpy(r,name,lname+1);
+  } else {
+    *r = 0;
+  }
+  return buff;
+}
+
+SWIGRUNTIME const char *
+SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
+  if (*c != '_') {
+    if (strcmp(c,"NULL") == 0) {
+      memset(ptr,0,sz);
+      return name;
+    } else {
+      return 0;
+    }
+  }
+  return SWIG_UnpackData(++c,ptr,sz);
+}
+
+#ifdef __cplusplus
+}
+#endif
+
+/*  Errors in SWIG */
+#define  SWIG_UnknownError    	   -1 
+#define  SWIG_IOError        	   -2 
+#define  SWIG_RuntimeError   	   -3 
+#define  SWIG_IndexError     	   -4 
+#define  SWIG_TypeError      	   -5 
+#define  SWIG_DivisionByZero 	   -6 
+#define  SWIG_OverflowError  	   -7 
+#define  SWIG_SyntaxError    	   -8 
+#define  SWIG_ValueError     	   -9 
+#define  SWIG_SystemError    	   -10
+#define  SWIG_AttributeError 	   -11
+#define  SWIG_MemoryError    	   -12 
+#define  SWIG_NullReferenceError   -13
+
+
+
+/* Compatibility macros for Python 3 */
+#if PY_VERSION_HEX >= 0x03000000
+
+#define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
+#define PyInt_Check(x) PyLong_Check(x)
+#define PyInt_AsLong(x) PyLong_AsLong(x)
+#define PyInt_FromLong(x) PyLong_FromLong(x)
+#define PyString_Format(fmt, args)  PyUnicode_Format(fmt, args)
+
+#endif
+
+#ifndef Py_TYPE
+#  define Py_TYPE(op) ((op)->ob_type)
+#endif
+
+/* SWIG APIs for compatibility of both Python 2 & 3 */
+
+#if PY_VERSION_HEX >= 0x03000000
+#  define SWIG_Python_str_FromFormat PyUnicode_FromFormat
+#else
+#  define SWIG_Python_str_FromFormat PyString_FromFormat
+#endif
+
+
+/* Warning: This function will allocate a new string in Python 3,
+ * so please call SWIG_Python_str_DelForPy3(x) to free the space.
+ */
+SWIGINTERN char*
+SWIG_Python_str_AsChar(PyObject *str)
+{
+#if PY_VERSION_HEX >= 0x03000000
+  char *cstr;
+  char *newstr;
+  Py_ssize_t len;
+  str = PyUnicode_AsUTF8String(str);
+  PyBytes_AsStringAndSize(str, &cstr, &len);
+  newstr = (char *) malloc(len+1);
+  memcpy(newstr, cstr, len+1);
+  Py_XDECREF(str);
+  return newstr;
+#else
+  return PyString_AsString(str);
+#endif
+}
+
+#if PY_VERSION_HEX >= 0x03000000
+#  define SWIG_Python_str_DelForPy3(x) free( (void*) (x) )
+#else
+#  define SWIG_Python_str_DelForPy3(x) 
+#endif
+
+
+SWIGINTERN PyObject*
+SWIG_Python_str_FromChar(const char *c)
+{
+#if PY_VERSION_HEX >= 0x03000000
+  return PyUnicode_FromString(c); 
+#else
+  return PyString_FromString(c);
+#endif
+}
+
+/* Add PyOS_snprintf for old Pythons */
+#if PY_VERSION_HEX < 0x02020000
+# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
+#  define PyOS_snprintf _snprintf
+# else
+#  define PyOS_snprintf snprintf
+# endif
+#endif
+
+/* A crude PyString_FromFormat implementation for old Pythons */
+#if PY_VERSION_HEX < 0x02020000
+
+#ifndef SWIG_PYBUFFER_SIZE
+# define SWIG_PYBUFFER_SIZE 1024
+#endif
+
+static PyObject *
+PyString_FromFormat(const char *fmt, ...) {
+  va_list ap;
+  char buf[SWIG_PYBUFFER_SIZE * 2];
+  int res;
+  va_start(ap, fmt);
+  res = vsnprintf(buf, sizeof(buf), fmt, ap);
+  va_end(ap);
+  return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
+}
+#endif
+
+/* Add PyObject_Del for old Pythons */
+#if PY_VERSION_HEX < 0x01060000
+# define PyObject_Del(op) PyMem_DEL((op))
+#endif
+#ifndef PyObject_DEL
+# define PyObject_DEL PyObject_Del
+#endif
+
+/* A crude PyExc_StopIteration exception for old Pythons */
+#if PY_VERSION_HEX < 0x02020000
+# ifndef PyExc_StopIteration
+#  define PyExc_StopIteration PyExc_RuntimeError
+# endif
+# ifndef PyObject_GenericGetAttr
+#  define PyObject_GenericGetAttr 0
+# endif
+#endif
+
+/* Py_NotImplemented is defined in 2.1 and up. */
+#if PY_VERSION_HEX < 0x02010000
+# ifndef Py_NotImplemented
+#  define Py_NotImplemented PyExc_RuntimeError
+# endif
+#endif
+
+/* A crude PyString_AsStringAndSize implementation for old Pythons */
+#if PY_VERSION_HEX < 0x02010000
+# ifndef PyString_AsStringAndSize
+#  define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
+# endif
+#endif
+
+/* PySequence_Size for old Pythons */
+#if PY_VERSION_HEX < 0x02000000
+# ifndef PySequence_Size
+#  define PySequence_Size PySequence_Length
+# endif
+#endif
+
+/* PyBool_FromLong for old Pythons */
+#if PY_VERSION_HEX < 0x02030000
+static
+PyObject *PyBool_FromLong(long ok)
+{
+  PyObject *result = ok ? Py_True : Py_False;
+  Py_INCREF(result);
+  return result;
+}
+#endif
+
+/* Py_ssize_t for old Pythons */
+/* This code is as recommended by: */
+/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */
+#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
+typedef int Py_ssize_t;
+# define PY_SSIZE_T_MAX INT_MAX
+# define PY_SSIZE_T_MIN INT_MIN
+#endif
+
+/* -----------------------------------------------------------------------------
+ * error manipulation
+ * ----------------------------------------------------------------------------- */
+
+SWIGRUNTIME PyObject*
+SWIG_Python_ErrorType(int code) {
+  PyObject* type = 0;
+  switch(code) {
+  case SWIG_MemoryError:
+    type = PyExc_MemoryError;
+    break;
+  case SWIG_IOError:
+    type = PyExc_IOError;
+    break;
+  case SWIG_RuntimeError:
+    type = PyExc_RuntimeError;
+    break;
+  case SWIG_IndexError:
+    type = PyExc_IndexError;
+    break;
+  case SWIG_TypeError:
+    type = PyExc_TypeError;
+    break;
+  case SWIG_DivisionByZero:
+    type = PyExc_ZeroDivisionError;
+    break;
+  case SWIG_OverflowError:
+    type = PyExc_OverflowError;
+    break;
+  case SWIG_SyntaxError:
+    type = PyExc_SyntaxError;
+    break;
+  case SWIG_ValueError:
+    type = PyExc_ValueError;
+    break;
+  case SWIG_SystemError:
+    type = PyExc_SystemError;
+    break;
+  case SWIG_AttributeError:
+    type = PyExc_AttributeError;
+    break;
+  default:
+    type = PyExc_RuntimeError;
+  }
+  return type;
+}
+
+
+SWIGRUNTIME void
+SWIG_Python_AddErrorMsg(const char* mesg)
+{
+  PyObject *type = 0;
+  PyObject *value = 0;
+  PyObject *traceback = 0;
+
+  if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
+  if (value) {
+    char *tmp;
+    PyObject *old_str = PyObject_Str(value);
+    PyErr_Clear();
+    Py_XINCREF(type);
+
+    PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
+    SWIG_Python_str_DelForPy3(tmp);
+    Py_DECREF(old_str);
+    Py_DECREF(value);
+  } else {
+    PyErr_SetString(PyExc_RuntimeError, mesg);
+  }
+}
+
+#if defined(SWIG_PYTHON_NO_THREADS)
+#  if defined(SWIG_PYTHON_THREADS)
+#    undef SWIG_PYTHON_THREADS
+#  endif
+#endif
+#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
+#  if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
+#    if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
+#      define SWIG_PYTHON_USE_GIL
+#    endif
+#  endif
+#  if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
+#    ifndef SWIG_PYTHON_INITIALIZE_THREADS
+#     define SWIG_PYTHON_INITIALIZE_THREADS  PyEval_InitThreads() 
+#    endif
+#    ifdef __cplusplus /* C++ code */
+       class SWIG_Python_Thread_Block {
+         bool status;
+         PyGILState_STATE state;
+       public:
+         void end() { if (status) { PyGILState_Release(state); status = false;} }
+         SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
+         ~SWIG_Python_Thread_Block() { end(); }
+       };
+       class SWIG_Python_Thread_Allow {
+         bool status;
+         PyThreadState *save;
+       public:
+         void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
+         SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
+         ~SWIG_Python_Thread_Allow() { end(); }
+       };
+#      define SWIG_PYTHON_THREAD_BEGIN_BLOCK   SWIG_Python_Thread_Block _swig_thread_block
+#      define SWIG_PYTHON_THREAD_END_BLOCK     _swig_thread_block.end()
+#      define SWIG_PYTHON_THREAD_BEGIN_ALLOW   SWIG_Python_Thread_Allow _swig_thread_allow
+#      define SWIG_PYTHON_THREAD_END_ALLOW     _swig_thread_allow.end()
+#    else /* C code */
+#      define SWIG_PYTHON_THREAD_BEGIN_BLOCK   PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
+#      define SWIG_PYTHON_THREAD_END_BLOCK     PyGILState_Release(_swig_thread_block)
+#      define SWIG_PYTHON_THREAD_BEGIN_ALLOW   PyThreadState *_swig_thread_allow = PyEval_SaveThread()
+#      define SWIG_PYTHON_THREAD_END_ALLOW     PyEval_RestoreThread(_swig_thread_allow)
+#    endif
+#  else /* Old thread way, not implemented, user must provide it */
+#    if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
+#      define SWIG_PYTHON_INITIALIZE_THREADS
+#    endif
+#    if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
+#      define SWIG_PYTHON_THREAD_BEGIN_BLOCK
+#    endif
+#    if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
+#      define SWIG_PYTHON_THREAD_END_BLOCK
+#    endif
+#    if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
+#      define SWIG_PYTHON_THREAD_BEGIN_ALLOW
+#    endif
+#    if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
+#      define SWIG_PYTHON_THREAD_END_ALLOW
+#    endif
+#  endif
+#else /* No thread support */
+#  define SWIG_PYTHON_INITIALIZE_THREADS
+#  define SWIG_PYTHON_THREAD_BEGIN_BLOCK
+#  define SWIG_PYTHON_THREAD_END_BLOCK
+#  define SWIG_PYTHON_THREAD_BEGIN_ALLOW
+#  define SWIG_PYTHON_THREAD_END_ALLOW
+#endif
+
+/* -----------------------------------------------------------------------------
+ * Python API portion that goes into the runtime
+ * ----------------------------------------------------------------------------- */
+
+#ifdef __cplusplus
+extern "C" {
+#if 0
+} /* cc-mode */
+#endif
+#endif
+
+/* -----------------------------------------------------------------------------
+ * Constant declarations
+ * ----------------------------------------------------------------------------- */
+
+/* Constant Types */
+#define SWIG_PY_POINTER 4
+#define SWIG_PY_BINARY  5
+
+/* Constant information structure */
+typedef struct swig_const_info {
+  int type;
+  char *name;
+  long lvalue;
+  double dvalue;
+  void   *pvalue;
+  swig_type_info **ptype;
+} swig_const_info;
+
+
+/* -----------------------------------------------------------------------------
+ * Wrapper of PyInstanceMethod_New() used in Python 3
+ * It is exported to the generated module, used for -fastproxy
+ * ----------------------------------------------------------------------------- */
+SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *self, PyObject *func)
+{
+#if PY_VERSION_HEX >= 0x03000000
+  return PyInstanceMethod_New(func);
+#else
+  return NULL;
+#endif
+}
+
+#ifdef __cplusplus
+#if 0
+{ /* cc-mode */
+#endif
+}
+#endif
+
+
+/* -----------------------------------------------------------------------------
+ * See the LICENSE file for information on copyright, usage and redistribution
+ * of SWIG, and the README file for authors - http://www.swig.org/release.html.
+ *
+ * pyrun.swg
+ *
+ * This file contains the runtime support for Python modules
+ * and includes code for managing global variables and pointer
+ * type checking.
+ *
+ * ----------------------------------------------------------------------------- */
+
+/* Common SWIG API */
+
+/* for raw pointers */
+#define SWIG_Python_ConvertPtr(obj, pptr, type, flags)  SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
+#define SWIG_ConvertPtr(obj, pptr, type, flags)         SWIG_Python_ConvertPtr(obj, pptr, type, flags)
+#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own)  SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
+#define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(ptr, type, flags)
+#define SWIG_CheckImplicit(ty)                          SWIG_Python_CheckImplicit(ty) 
+#define SWIG_AcquirePtr(ptr, src)                       SWIG_Python_AcquirePtr(ptr, src)
+#define swig_owntype                                    int
+
+/* for raw packed data */
+#define SWIG_ConvertPacked(obj, ptr, sz, ty)            SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
+#define SWIG_NewPackedObj(ptr, sz, type)                SWIG_Python_NewPackedObj(ptr, sz, type)
+
+/* for class or struct pointers */
+#define SWIG_ConvertInstance(obj, pptr, type, flags)    SWIG_ConvertPtr(obj, pptr, type, flags)
+#define SWIG_NewInstanceObj(ptr, type, flags)           SWIG_NewPointerObj(ptr, type, flags)
+
+/* for C or C++ function pointers */
+#define SWIG_ConvertFunctionPtr(obj, pptr, type)        SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
+#define SWIG_NewFunctionPtrObj(ptr, type)               SWIG_Python_NewPointerObj(ptr, type, 0)
+
+/* for C++ member pointers, ie, member methods */
+#define SWIG_ConvertMember(obj, ptr, sz, ty)            SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
+#define SWIG_NewMemberObj(ptr, sz, type)                SWIG_Python_NewPackedObj(ptr, sz, type)
+
+
+/* Runtime API */
+
+#define SWIG_GetModule(clientdata)                      SWIG_Python_GetModule()
+#define SWIG_SetModule(clientdata, pointer)             SWIG_Python_SetModule(pointer)
+#define SWIG_NewClientData(obj)                         SwigPyClientData_New(obj)
+
+#define SWIG_SetErrorObj                                SWIG_Python_SetErrorObj                            
+#define SWIG_SetErrorMsg                        	SWIG_Python_SetErrorMsg				   
+#define SWIG_ErrorType(code)                    	SWIG_Python_ErrorType(code)                        
+#define SWIG_Error(code, msg)            		SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) 
+#define SWIG_fail                        		goto fail					   
+
+
+/* Runtime API implementation */
+
+/* Error manipulation */
+
+SWIGINTERN void 
+SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
+  SWIG_PYTHON_THREAD_BEGIN_BLOCK; 
+  PyErr_SetObject(errtype, obj);
+  Py_DECREF(obj);
+  SWIG_PYTHON_THREAD_END_BLOCK;
+}
+
+SWIGINTERN void 
+SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
+  SWIG_PYTHON_THREAD_BEGIN_BLOCK;
+  PyErr_SetString(errtype, (char *) msg);
+  SWIG_PYTHON_THREAD_END_BLOCK;
+}
+
+#define SWIG_Python_Raise(obj, type, desc)  SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
+
+/* Set a constant value */
+
+SWIGINTERN void
+SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {   
+  PyDict_SetItemString(d, (char*) name, obj);
+  Py_DECREF(obj);                            
+}
+
+/* Append a value to the result obj */
+
+SWIGINTERN PyObject*
+SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
+#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
+  if (!result) {
+    result = obj;
+  } else if (result == Py_None) {
+    Py_DECREF(result);
+    result = obj;
+  } else {
+    if (!PyList_Check(result)) {
+      PyObject *o2 = result;
+      result = PyList_New(1);
+      PyList_SetItem(result, 0, o2);
+    }
+    PyList_Append(result,obj);
+    Py_DECREF(obj);
+  }
+  return result;
+#else
+  PyObject*   o2;
+  PyObject*   o3;
+  if (!result) {
+    result = obj;
+  } else if (result == Py_None) {
+    Py_DECREF(result);
+    result = obj;
+  } else {
+    if (!PyTuple_Check(result)) {
+      o2 = result;
+      result = PyTuple_New(1);
+      PyTuple_SET_ITEM(result, 0, o2);
+    }
+    o3 = PyTuple_New(1);
+    PyTuple_SET_ITEM(o3, 0, obj);
+    o2 = result;
+    result = PySequence_Concat(o2, o3);
+    Py_DECREF(o2);
+    Py_DECREF(o3);
+  }
+  return result;
+#endif
+}
+
+/* Unpack the argument tuple */
+
+SWIGINTERN int
+SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
+{
+  if (!args) {
+    if (!min && !max) {
+      return 1;
+    } else {
+      PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", 
+		   name, (min == max ? "" : "at least "), (int)min);
+      return 0;
+    }
+  }  
+  if (!PyTuple_Check(args)) {
+    PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
+    return 0;
+  } else {
+    register Py_ssize_t l = PyTuple_GET_SIZE(args);
+    if (l < min) {
+      PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", 
+		   name, (min == max ? "" : "at least "), (int)min, (int)l);
+      return 0;
+    } else if (l > max) {
+      PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", 
+		   name, (min == max ? "" : "at most "), (int)max, (int)l);
+      return 0;
+    } else {
+      register int i;
+      for (i = 0; i < l; ++i) {
+	objs[i] = PyTuple_GET_ITEM(args, i);
+      }
+      for (; l < max; ++l) {
+	objs[l] = 0;
+      }
+      return i + 1;
+    }    
+  }
+}
+
+/* A functor is a function object with one single object argument */
+#if PY_VERSION_HEX >= 0x02020000
+#define SWIG_Python_CallFunctor(functor, obj)	        PyObject_CallFunctionObjArgs(functor, obj, NULL);
+#else
+#define SWIG_Python_CallFunctor(functor, obj)	        PyObject_CallFunction(functor, "O", obj);
+#endif
+
+/*
+  Helper for static pointer initialization for both C and C++ code, for example
+  static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
+*/
+#ifdef __cplusplus
+#define SWIG_STATIC_POINTER(var)  var
+#else
+#define SWIG_STATIC_POINTER(var)  var = 0; if (!var) var
+#endif
+
+/* -----------------------------------------------------------------------------
+ * Pointer declarations
+ * ----------------------------------------------------------------------------- */
+
+/* Flags for new pointer objects */
+#define SWIG_POINTER_NOSHADOW       (SWIG_POINTER_OWN      << 1)
+#define SWIG_POINTER_NEW            (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
+
+#define SWIG_POINTER_IMPLICIT_CONV  (SWIG_POINTER_DISOWN   << 1)
+
+#ifdef __cplusplus
+extern "C" {
+#if 0
+} /* cc-mode */
+#endif
+#endif
+
+/*  How to access Py_None */
+#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
+#  ifndef SWIG_PYTHON_NO_BUILD_NONE
+#    ifndef SWIG_PYTHON_BUILD_NONE
+#      define SWIG_PYTHON_BUILD_NONE
+#    endif
+#  endif
+#endif
+
+#ifdef SWIG_PYTHON_BUILD_NONE
+#  ifdef Py_None
+#   undef Py_None
+#   define Py_None SWIG_Py_None()
+#  endif
+SWIGRUNTIMEINLINE PyObject * 
+_SWIG_Py_None(void)
+{
+  PyObject *none = Py_BuildValue((char*)"");
+  Py_DECREF(none);
+  return none;
+}
+SWIGRUNTIME PyObject * 
+SWIG_Py_None(void)
+{
+  static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
+  return none;
+}
+#endif
+
+/* The python void return value */
+
+SWIGRUNTIMEINLINE PyObject * 
+SWIG_Py_Void(void)
+{
+  PyObject *none = Py_None;
+  Py_INCREF(none);
+  return none;
+}
+
+/* SwigPyClientData */
+
+typedef struct {
+  PyObject *klass;
+  PyObject *newraw;
+  PyObject *newargs;
+  PyObject *destroy;
+  int delargs;
+  int implicitconv;
+} SwigPyClientData;
+
+SWIGRUNTIMEINLINE int 
+SWIG_Python_CheckImplicit(swig_type_info *ty)
+{
+  SwigPyClientData *data = (SwigPyClientData *)ty->clientdata;
+  return data ? data->implicitconv : 0;
+}
+
+SWIGRUNTIMEINLINE PyObject *
+SWIG_Python_ExceptionType(swig_type_info *desc) {
+  SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0;
+  PyObject *klass = data ? data->klass : 0;
+  return (klass ? klass : PyExc_RuntimeError);
+}
+
+
+SWIGRUNTIME SwigPyClientData * 
+SwigPyClientData_New(PyObject* obj)
+{
+  if (!obj) {
+    return 0;
+  } else {
+    SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData));
+    /* the klass element */
+    data->klass = obj;
+    Py_INCREF(data->klass);
+    /* the newraw method and newargs arguments used to create a new raw instance */
+    if (PyClass_Check(obj)) {
+      data->newraw = 0;
+      data->newargs = obj;
+      Py_INCREF(obj);
+    } else {
+#if (PY_VERSION_HEX < 0x02020000)
+      data->newraw = 0;
+#else
+      data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
+#endif
+      if (data->newraw) {
+	Py_INCREF(data->newraw);
+	data->newargs = PyTuple_New(1);
+	PyTuple_SetItem(data->newargs, 0, obj);
+      } else {
+	data->newargs = obj;
+      }
+      Py_INCREF(data->newargs);
+    }
+    /* the destroy method, aka as the C++ delete method */
+    data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
+    if (PyErr_Occurred()) {
+      PyErr_Clear();
+      data->destroy = 0;
+    }
+    if (data->destroy) {
+      int flags;
+      Py_INCREF(data->destroy);
+      flags = PyCFunction_GET_FLAGS(data->destroy);
+#ifdef METH_O
+      data->delargs = !(flags & (METH_O));
+#else
+      data->delargs = 0;
+#endif
+    } else {
+      data->delargs = 0;
+    }
+    data->implicitconv = 0;
+    return data;
+  }
+}
+
+SWIGRUNTIME void 
+SwigPyClientData_Del(SwigPyClientData* data)
+{
+  Py_XDECREF(data->newraw);
+  Py_XDECREF(data->newargs);
+  Py_XDECREF(data->destroy);
+}
+
+/* =============== SwigPyObject =====================*/
+
+typedef struct {
+  PyObject_HEAD
+  void *ptr;
+  swig_type_info *ty;
+  int own;
+  PyObject *next;
+} SwigPyObject;
+
+SWIGRUNTIME PyObject *
+SwigPyObject_long(SwigPyObject *v)
+{
+  return PyLong_FromVoidPtr(v->ptr);
+}
+
+SWIGRUNTIME PyObject *
+SwigPyObject_format(const char* fmt, SwigPyObject *v)
+{
+  PyObject *res = NULL;
+  PyObject *args = PyTuple_New(1);
+  if (args) {
+    if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) {
+      PyObject *ofmt = SWIG_Python_str_FromChar(fmt);
+      if (ofmt) {
+#if PY_VERSION_HEX >= 0x03000000
+	res = PyUnicode_Format(ofmt,args);
+#else
+	res = PyString_Format(ofmt,args);
+#endif
+	Py_DECREF(ofmt);
+      }
+      Py_DECREF(args);
+    }
+  }
+  return res;
+}
+
+SWIGRUNTIME PyObject *
+SwigPyObject_oct(SwigPyObject *v)
+{
+  return SwigPyObject_format("%o",v);
+}
+
+SWIGRUNTIME PyObject *
+SwigPyObject_hex(SwigPyObject *v)
+{
+  return SwigPyObject_format("%x",v);
+}
+
+SWIGRUNTIME PyObject *
+#ifdef METH_NOARGS
+SwigPyObject_repr(SwigPyObject *v)
+#else
+SwigPyObject_repr(SwigPyObject *v, PyObject *args)
+#endif
+{
+  const char *name = SWIG_TypePrettyName(v->ty);
+  PyObject *repr = SWIG_Python_str_FromFormat("<Swig Object of type '%s' at %p>", name, v);
+  if (v->next) {
+#ifdef METH_NOARGS
+    PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
+#else
+    PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args);
+#endif
+#if PY_VERSION_HEX >= 0x03000000
+    PyObject *joined = PyUnicode_Concat(repr, nrep);
+    Py_DecRef(repr);
+    Py_DecRef(nrep);
+    repr = joined;
+#else
+    PyString_ConcatAndDel(&repr,nrep);
+#endif
+  }
+  return repr;  
+}
+
+SWIGRUNTIME int
+SwigPyObject_print(SwigPyObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
+{
+  char *str;
+#ifdef METH_NOARGS
+  PyObject *repr = SwigPyObject_repr(v);
+#else
+  PyObject *repr = SwigPyObject_repr(v, NULL);
+#endif
+  if (repr) {
+    str = SWIG_Python_str_AsChar(repr); 
+    fputs(str, fp);
+    SWIG_Python_str_DelForPy3(str);
+    Py_DECREF(repr);
+    return 0; 
+  } else {
+    return 1; 
+  }
+}
+
+SWIGRUNTIME PyObject *
+SwigPyObject_str(SwigPyObject *v)
+{
+  char result[SWIG_BUFFER_SIZE];
+  return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
+    SWIG_Python_str_FromChar(result) : 0;
+}
+
+SWIGRUNTIME int
+SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
+{
+  void *i = v->ptr;
+  void *j = w->ptr;
+  return (i < j) ? -1 : ((i > j) ? 1 : 0);
+}
+
+/* Added for Python 3.x, would it also be useful for Python 2.x? */
+SWIGRUNTIME PyObject*
+SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
+{
+  PyObject* res;
+  if( op != Py_EQ && op != Py_NE ) {
+    Py_INCREF(Py_NotImplemented);
+    return Py_NotImplemented;
+  }
+  if( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) )
+    res = Py_True;
+  else
+    res = Py_False;
+  Py_INCREF(res);
+  return res;  
+}
+
+
+SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
+
+SWIGRUNTIME PyTypeObject*
+SwigPyObject_type(void) {
+  static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
+  return type;
+}
+
+SWIGRUNTIMEINLINE int
+SwigPyObject_Check(PyObject *op) {
+  return (Py_TYPE(op) == SwigPyObject_type())
+    || (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0);
+}
+
+SWIGRUNTIME PyObject *
+SwigPyObject_New(void *ptr, swig_type_info *ty, int own);
+
+SWIGRUNTIME void
+SwigPyObject_dealloc(PyObject *v)
+{
+  SwigPyObject *sobj = (SwigPyObject *) v;
+  PyObject *next = sobj->next;
+  if (sobj->own == SWIG_POINTER_OWN) {
+    swig_type_info *ty = sobj->ty;
+    SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
+    PyObject *destroy = data ? data->destroy : 0;
+    if (destroy) {
+      /* destroy is always a VARARGS method */
+      PyObject *res;
+      if (data->delargs) {
+	/* we need to create a temporary object to carry the destroy operation */
+	PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
+	res = SWIG_Python_CallFunctor(destroy, tmp);
+	Py_DECREF(tmp);
+      } else {
+	PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
+	PyObject *mself = PyCFunction_GET_SELF(destroy);
+	res = ((*meth)(mself, v));
+      }
+      Py_XDECREF(res);
+    } 
+#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
+    else {
+      const char *name = SWIG_TypePrettyName(ty);
+      printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown"));
+    }
+#endif
+  } 
+  Py_XDECREF(next);
+  PyObject_DEL(v);
+}
+
+SWIGRUNTIME PyObject* 
+SwigPyObject_append(PyObject* v, PyObject* next)
+{
+  SwigPyObject *sobj = (SwigPyObject *) v;
+#ifndef METH_O
+  PyObject *tmp = 0;
+  if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
+  next = tmp;
+#endif
+  if (!SwigPyObject_Check(next)) {
+    return NULL;
+  }
+  sobj->next = next;
+  Py_INCREF(next);
+  return SWIG_Py_Void();
+}
+
+SWIGRUNTIME PyObject* 
+#ifdef METH_NOARGS
+SwigPyObject_next(PyObject* v)
+#else
+SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
+#endif
+{
+  SwigPyObject *sobj = (SwigPyObject *) v;
+  if (sobj->next) {    
+    Py_INCREF(sobj->next);
+    return sobj->next;
+  } else {
+    return SWIG_Py_Void();
+  }
+}
+
+SWIGINTERN PyObject*
+#ifdef METH_NOARGS
+SwigPyObject_disown(PyObject *v)
+#else
+SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
+#endif
+{
+  SwigPyObject *sobj = (SwigPyObject *)v;
+  sobj->own = 0;
+  return SWIG_Py_Void();
+}
+
+SWIGINTERN PyObject*
+#ifdef METH_NOARGS
+SwigPyObject_acquire(PyObject *v)
+#else
+SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
+#endif
+{
+  SwigPyObject *sobj = (SwigPyObject *)v;
+  sobj->own = SWIG_POINTER_OWN;
+  return SWIG_Py_Void();
+}
+
+SWIGINTERN PyObject*
+SwigPyObject_own(PyObject *v, PyObject *args)
+{
+  PyObject *val = 0;
+#if (PY_VERSION_HEX < 0x02020000)
+  if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
+#else
+  if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) 
+#endif
+    {
+      return NULL;
+    } 
+  else
+    {
+      SwigPyObject *sobj = (SwigPyObject *)v;
+      PyObject *obj = PyBool_FromLong(sobj->own);
+      if (val) {
+#ifdef METH_NOARGS
+	if (PyObject_IsTrue(val)) {
+	  SwigPyObject_acquire(v);
+	} else {
+	  SwigPyObject_disown(v);
+	}
+#else
+	if (PyObject_IsTrue(val)) {
+	  SwigPyObject_acquire(v,args);
+	} else {
+	  SwigPyObject_disown(v,args);
+	}
+#endif
+      } 
+      return obj;
+    }
+}
+
+#ifdef METH_O
+static PyMethodDef
+swigobject_methods[] = {
+  {(char *)"disown",  (PyCFunction)SwigPyObject_disown,  METH_NOARGS,  (char *)"releases ownership of the pointer"},
+  {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS,  (char *)"aquires ownership of the pointer"},
+  {(char *)"own",     (PyCFunction)SwigPyObject_own,     METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
+  {(char *)"append",  (PyCFunction)SwigPyObject_append,  METH_O,       (char *)"appends another 'this' object"},
+  {(char *)"next",    (PyCFunction)SwigPyObject_next,    METH_NOARGS,  (char *)"returns the next 'this' object"},
+  {(char *)"__repr__",(PyCFunction)SwigPyObject_repr,    METH_NOARGS,  (char *)"returns object representation"},
+  {0, 0, 0, 0}  
+};
+#else
+static PyMethodDef
+swigobject_methods[] = {
+  {(char *)"disown",  (PyCFunction)SwigPyObject_disown,  METH_VARARGS,  (char *)"releases ownership of the pointer"},
+  {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS,  (char *)"aquires ownership of the pointer"},
+  {(char *)"own",     (PyCFunction)SwigPyObject_own,     METH_VARARGS,  (char *)"returns/sets ownership of the pointer"},
+  {(char *)"append",  (PyCFunction)SwigPyObject_append,  METH_VARARGS,  (char *)"appends another 'this' object"},
+  {(char *)"next",    (PyCFunction)SwigPyObject_next,    METH_VARARGS,  (char *)"returns the next 'this' object"},
+  {(char *)"__repr__",(PyCFunction)SwigPyObject_repr,   METH_VARARGS,  (char *)"returns object representation"},
+  {0, 0, 0, 0}  
+};
+#endif
+
+#if PY_VERSION_HEX < 0x02020000
+SWIGINTERN PyObject *
+SwigPyObject_getattr(SwigPyObject *sobj,char *name)
+{
+  return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
+}
+#endif
+
+SWIGRUNTIME PyTypeObject*
+_PySwigObject_type(void) {
+  static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
+  
+  static PyNumberMethods SwigPyObject_as_number = {
+    (binaryfunc)0, /*nb_add*/
+    (binaryfunc)0, /*nb_subtract*/
+    (binaryfunc)0, /*nb_multiply*/
+    /* nb_divide removed in Python 3 */
+#if PY_VERSION_HEX < 0x03000000
+    (binaryfunc)0, /*nb_divide*/
+#endif
+    (binaryfunc)0, /*nb_remainder*/
+    (binaryfunc)0, /*nb_divmod*/
+    (ternaryfunc)0,/*nb_power*/
+    (unaryfunc)0,  /*nb_negative*/
+    (unaryfunc)0,  /*nb_positive*/
+    (unaryfunc)0,  /*nb_absolute*/
+    (inquiry)0,    /*nb_nonzero*/
+    0,		   /*nb_invert*/
+    0,		   /*nb_lshift*/
+    0,		   /*nb_rshift*/
+    0,		   /*nb_and*/
+    0,		   /*nb_xor*/
+    0,		   /*nb_or*/
+#if PY_VERSION_HEX < 0x03000000
+    0,   /*nb_coerce*/
+#endif
+    (unaryfunc)SwigPyObject_long, /*nb_int*/
+#if PY_VERSION_HEX < 0x03000000
+    (unaryfunc)SwigPyObject_long, /*nb_long*/
+#else
+    0, /*nb_reserved*/
+#endif
+    (unaryfunc)0,                 /*nb_float*/
+#if PY_VERSION_HEX < 0x03000000
+    (unaryfunc)SwigPyObject_oct,  /*nb_oct*/
+    (unaryfunc)SwigPyObject_hex,  /*nb_hex*/
+#endif
+#if PY_VERSION_HEX >= 0x03000000 /* 3.0 */
+    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */
+#elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */
+    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
+#elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */
+    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
+#elif PY_VERSION_HEX >= 0x02000000 /* 2.0.0 */
+    0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
+#endif
+  };
+
+  static PyTypeObject swigpyobject_type;  
+  static int type_init = 0;
+  if (!type_init) {
+    const PyTypeObject tmp
+      = {
+	/* PyObject header changed in Python 3 */
+#if PY_VERSION_HEX >= 0x03000000
+	PyVarObject_HEAD_INIT(&PyType_Type, 0)
+#else    
+	PyObject_HEAD_INIT(NULL)
+	0,				    /* ob_size */
+#endif
+	(char *)"SwigPyObject",		    /* tp_name */
+	sizeof(SwigPyObject),		    /* tp_basicsize */
+	0,			            /* tp_itemsize */
+	(destructor)SwigPyObject_dealloc,   /* tp_dealloc */
+	(printfunc)SwigPyObject_print,	    /* tp_print */
+#if PY_VERSION_HEX < 0x02020000
+	(getattrfunc)SwigPyObject_getattr,  /* tp_getattr */ 
+#else
+	(getattrfunc)0,			    /* tp_getattr */ 
+#endif
+	(setattrfunc)0,			    /* tp_setattr */ 
+#if PY_VERSION_HEX >= 0x03000000
+    0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
+#else
+	(cmpfunc)SwigPyObject_compare,	    /* tp_compare */
+#endif
+	(reprfunc)SwigPyObject_repr,	    /* tp_repr */    
+	&SwigPyObject_as_number,	    /* tp_as_number */
+	0,				    /* tp_as_sequence */
+	0,				    /* tp_as_mapping */
+	(hashfunc)0,			    /* tp_hash */
+	(ternaryfunc)0,			    /* tp_call */
+	(reprfunc)SwigPyObject_str,	    /* tp_str */
+	PyObject_GenericGetAttr,            /* tp_getattro */
+	0,				    /* tp_setattro */
+	0,		                    /* tp_as_buffer */
+	Py_TPFLAGS_DEFAULT,	            /* tp_flags */
+	swigobject_doc, 	            /* tp_doc */        
+	0,                                  /* tp_traverse */
+	0,                                  /* tp_clear */
+	(richcmpfunc)SwigPyObject_richcompare,           /* tp_richcompare */
+	0,                                  /* tp_weaklistoffset */
+#if PY_VERSION_HEX >= 0x02020000
+	0,                                  /* tp_iter */
+	0,                                  /* tp_iternext */
+	swigobject_methods,		    /* tp_methods */ 
+	0,			            /* tp_members */
+	0,				    /* tp_getset */	    	
+	0,			            /* tp_base */	        
+	0,				    /* tp_dict */	    	
+	0,				    /* tp_descr_get */  	
+	0,				    /* tp_descr_set */  	
+	0,				    /* tp_dictoffset */ 	
+	0,				    /* tp_init */	    	
+	0,				    /* tp_alloc */	    	
+	0,			            /* tp_new */	    	
+	0,	                            /* tp_free */	   
+	0,                                  /* tp_is_gc */  
+	0,				    /* tp_bases */   
+	0,				    /* tp_mro */
+	0,				    /* tp_cache */   
+	0,				    /* tp_subclasses */
+	0,				    /* tp_weaklist */
+#endif
+#if PY_VERSION_HEX >= 0x02030000
+	0,                                  /* tp_del */
+#endif
+#ifdef COUNT_ALLOCS
+	0,0,0,0                             /* tp_alloc -> tp_next */
+#endif
+      };
+    swigpyobject_type = tmp;
+    /* for Python 3 we already assigned ob_type in PyVarObject_HEAD_INIT() */
+#if PY_VERSION_HEX < 0x03000000
+    swigpyobject_type.ob_type = &PyType_Type;
+#endif
+    type_init = 1;
+  }
+  return &swigpyobject_type;
+}
+
+SWIGRUNTIME PyObject *
+SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
+{
+  SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type());
+  if (sobj) {
+    sobj->ptr  = ptr;
+    sobj->ty   = ty;
+    sobj->own  = own;
+    sobj->next = 0;
+  }
+  return (PyObject *)sobj;
+}
+
+/* -----------------------------------------------------------------------------
+ * Implements a simple Swig Packed type, and use it instead of string
+ * ----------------------------------------------------------------------------- */
+
+typedef struct {
+  PyObject_HEAD
+  void *pack;
+  swig_type_info *ty;
+  size_t size;
+} SwigPyPacked;
+
+SWIGRUNTIME int
+SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
+{
+  char result[SWIG_BUFFER_SIZE];
+  fputs("<Swig Packed ", fp); 
+  if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
+    fputs("at ", fp); 
+    fputs(result, fp); 
+  }
+  fputs(v->ty->name,fp); 
+  fputs(">", fp);
+  return 0; 
+}
+  
+SWIGRUNTIME PyObject *
+SwigPyPacked_repr(SwigPyPacked *v)
+{
+  char result[SWIG_BUFFER_SIZE];
+  if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
+    return SWIG_Python_str_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
+  } else {
+    return SWIG_Python_str_FromFormat("<Swig Packed %s>", v->ty->name);
+  }  
+}
+
+SWIGRUNTIME PyObject *
+SwigPyPacked_str(SwigPyPacked *v)
+{
+  char result[SWIG_BUFFER_SIZE];
+  if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
+    return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name);
+  } else {
+    return SWIG_Python_str_FromChar(v->ty->name);
+  }  
+}
+
+SWIGRUNTIME int
+SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w)
+{
+  size_t i = v->size;
+  size_t j = w->size;
+  int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
+  return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
+}
+
+SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
+
+SWIGRUNTIME PyTypeObject*
+SwigPyPacked_type(void) {
+  static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
+  return type;
+}
+
+SWIGRUNTIMEINLINE int
+SwigPyPacked_Check(PyObject *op) {
+  return ((op)->ob_type == _PySwigPacked_type()) 
+    || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0);
+}
+
+SWIGRUNTIME void
+SwigPyPacked_dealloc(PyObject *v)
+{
+  if (SwigPyPacked_Check(v)) {
+    SwigPyPacked *sobj = (SwigPyPacked *) v;
+    free(sobj->pack);
+  }
+  PyObject_DEL(v);
+}
+
+SWIGRUNTIME PyTypeObject*
+_PySwigPacked_type(void) {
+  static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
+  static PyTypeObject swigpypacked_type;
+  static int type_init = 0;  
+  if (!type_init) {
+    const PyTypeObject tmp
+      = {
+    /* PyObject header changed in Python 3 */
+#if PY_VERSION_HEX>=0x03000000
+    PyVarObject_HEAD_INIT(&PyType_Type, 0)
+#else
+	PyObject_HEAD_INIT(NULL)
+    0,				    /* ob_size */	
+#endif
+	(char *)"SwigPyPacked",		    /* tp_name */	
+	sizeof(SwigPyPacked),		    /* tp_basicsize */	
+	0,				    /* tp_itemsize */	
+	(destructor)SwigPyPacked_dealloc,   /* tp_dealloc */	
+	(printfunc)SwigPyPacked_print,	    /* tp_print */   	
+	(getattrfunc)0,			    /* tp_getattr */ 	
+	(setattrfunc)0,			    /* tp_setattr */ 	
+#if PY_VERSION_HEX>=0x03000000
+    0, /* tp_reserved in 3.0.1 */
+#else
+    (cmpfunc)SwigPyPacked_compare,	    /* tp_compare */
+#endif
+	(reprfunc)SwigPyPacked_repr,	    /* tp_repr */
+	0,	                            /* tp_as_number */
+	0,				    /* tp_as_sequence */
+	0,				    /* tp_as_mapping */
+	(hashfunc)0,			    /* tp_hash */
+	(ternaryfunc)0,			    /* tp_call */
+	(reprfunc)SwigPyPacked_str,	    /* tp_str */
+	PyObject_GenericGetAttr,            /* tp_getattro */
+	0,				    /* tp_setattro */
+	0,		                    /* tp_as_buffer */
+	Py_TPFLAGS_DEFAULT,	            /* tp_flags */
+	swigpacked_doc, 	            /* tp_doc */
+	0,                                  /* tp_traverse */
+	0,                                  /* tp_clear */
+	0,                                  /* tp_richcompare */
+	0,                                  /* tp_weaklistoffset */
+#if PY_VERSION_HEX >= 0x02020000
+	0,                                  /* tp_iter */
+	0,                                  /* tp_iternext */
+	0,		                    /* tp_methods */ 
+	0,			            /* tp_members */
+	0,				    /* tp_getset */	    	
+	0,			            /* tp_base */	        
+	0,				    /* tp_dict */	    	
+	0,				    /* tp_descr_get */  	
+	0,				    /* tp_descr_set */  	
+	0,				    /* tp_dictoffset */ 	
+	0,				    /* tp_init */	    	
+	0,				    /* tp_alloc */	    	
+	0,			            /* tp_new */	    	
+	0, 	                            /* tp_free */	   
+        0,                                  /* tp_is_gc */  
+	0,				    /* tp_bases */   
+	0,				    /* tp_mro */
+	0,				    /* tp_cache */   
+ 	0,				    /* tp_subclasses */
+	0,				    /* tp_weaklist */
+#endif
+#if PY_VERSION_HEX >= 0x02030000
+	0,                                  /* tp_del */
+#endif
+#ifdef COUNT_ALLOCS
+	0,0,0,0                             /* tp_alloc -> tp_next */
+#endif
+      };
+    swigpypacked_type = tmp;
+    /* for Python 3 the ob_type already assigned in PyVarObject_HEAD_INIT() */
+#if PY_VERSION_HEX < 0x03000000
+    swigpypacked_type.ob_type = &PyType_Type;
+#endif
+    type_init = 1;
+  }
+  return &swigpypacked_type;
+}
+
+SWIGRUNTIME PyObject *
+SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty)
+{
+  SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type());
+  if (sobj) {
+    void *pack = malloc(size);
+    if (pack) {
+      memcpy(pack, ptr, size);
+      sobj->pack = pack;
+      sobj->ty   = ty;
+      sobj->size = size;
+    } else {
+      PyObject_DEL((PyObject *) sobj);
+      sobj = 0;
+    }
+  }
+  return (PyObject *) sobj;
+}
+
+SWIGRUNTIME swig_type_info *
+SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
+{
+  if (SwigPyPacked_Check(obj)) {
+    SwigPyPacked *sobj = (SwigPyPacked *)obj;
+    if (sobj->size != size) return 0;
+    memcpy(ptr, sobj->pack, size);
+    return sobj->ty;
+  } else {
+    return 0;
+  }
+}
+
+/* -----------------------------------------------------------------------------
+ * pointers/data manipulation
+ * ----------------------------------------------------------------------------- */
+
+SWIGRUNTIMEINLINE PyObject *
+_SWIG_This(void)
+{
+    return SWIG_Python_str_FromChar("this");
+}
+
+SWIGRUNTIME PyObject *
+SWIG_This(void)
+{
+  static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
+  return swig_this;
+}
+
+/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
+
+/* TODO: I don't know how to implement the fast getset in Python 3 right now */
+#if PY_VERSION_HEX>=0x03000000
+#define SWIG_PYTHON_SLOW_GETSET_THIS 
+#endif
+
+SWIGRUNTIME SwigPyObject *
+SWIG_Python_GetSwigThis(PyObject *pyobj) 
+{
+  if (SwigPyObject_Check(pyobj)) {
+    return (SwigPyObject *) pyobj;
+  } else {
+    PyObject *obj = 0;
+#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
+    if (PyInstance_Check(pyobj)) {
+      obj = _PyInstance_Lookup(pyobj, SWIG_This());      
+    } else {
+      PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
+      if (dictptr != NULL) {
+	PyObject *dict = *dictptr;
+	obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
+      } else {
+#ifdef PyWeakref_CheckProxy
+	if (PyWeakref_CheckProxy(pyobj)) {
+	  PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
+	  return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
+	}
+#endif
+	obj = PyObject_GetAttr(pyobj,SWIG_This());
+	if (obj) {
+	  Py_DECREF(obj);
+	} else {
+	  if (PyErr_Occurred()) PyErr_Clear();
+	  return 0;
+	}
+      }
+    }
+#else
+    obj = PyObject_GetAttr(pyobj,SWIG_This());
+    if (obj) {
+      Py_DECREF(obj);
+    } else {
+      if (PyErr_Occurred()) PyErr_Clear();
+      return 0;
+    }
+#endif
+    if (obj && !SwigPyObject_Check(obj)) {
+      /* a PyObject is called 'this', try to get the 'real this'
+	 SwigPyObject from it */ 
+      return SWIG_Python_GetSwigThis(obj);
+    }
+    return (SwigPyObject *)obj;
+  }
+}
+
+/* Acquire a pointer value */
+
+SWIGRUNTIME int
+SWIG_Python_AcquirePtr(PyObject *obj, int own) {
+  if (own == SWIG_POINTER_OWN) {
+    SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj);
+    if (sobj) {
+      int oldown = sobj->own;
+      sobj->own = own;
+      return oldown;
+    }
+  }
+  return 0;
+}
+
+/* Convert a pointer value */
+
+SWIGRUNTIME int
+SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
+  if (!obj) return SWIG_ERROR;
+  if (obj == Py_None) {
+    if (ptr) *ptr = 0;
+    return SWIG_OK;
+  } else {
+    SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj);
+    if (own)
+      *own = 0;
+    while (sobj) {
+      void *vptr = sobj->ptr;
+      if (ty) {
+	swig_type_info *to = sobj->ty;
+	if (to == ty) {
+	  /* no type cast needed */
+	  if (ptr) *ptr = vptr;
+	  break;
+	} else {
+	  swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
+	  if (!tc) {
+	    sobj = (SwigPyObject *)sobj->next;
+	  } else {
+	    if (ptr) {
+              int newmemory = 0;
+              *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
+              if (newmemory == SWIG_CAST_NEW_MEMORY) {
+                assert(own);
+                if (own)
+                  *own = *own | SWIG_CAST_NEW_MEMORY;
+              }
+            }
+	    break;
+	  }
+	}
+      } else {
+	if (ptr) *ptr = vptr;
+	break;
+      }
+    }
+    if (sobj) {
+      if (own)
+        *own = *own | sobj->own;
+      if (flags & SWIG_POINTER_DISOWN) {
+	sobj->own = 0;
+      }
+      return SWIG_OK;
+    } else {
+      int res = SWIG_ERROR;
+      if (flags & SWIG_POINTER_IMPLICIT_CONV) {
+	SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
+	if (data && !data->implicitconv) {
+	  PyObject *klass = data->klass;
+	  if (klass) {
+	    PyObject *impconv;
+	    data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
+	    impconv = SWIG_Python_CallFunctor(klass, obj);
+	    data->implicitconv = 0;
+	    if (PyErr_Occurred()) {
+	      PyErr_Clear();
+	      impconv = 0;
+	    }
+	    if (impconv) {
+	      SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv);
+	      if (iobj) {
+		void *vptr;
+		res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
+		if (SWIG_IsOK(res)) {
+		  if (ptr) {
+		    *ptr = vptr;
+		    /* transfer the ownership to 'ptr' */
+		    iobj->own = 0;
+		    res = SWIG_AddCast(res);
+		    res = SWIG_AddNewMask(res);
+		  } else {
+		    res = SWIG_AddCast(res);		    
+		  }
+		}
+	      }
+	      Py_DECREF(impconv);
+	    }
+	  }
+	}
+      }
+      return res;
+    }
+  }
+}
+
+/* Convert a function ptr value */
+
+SWIGRUNTIME int
+SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
+  if (!PyCFunction_Check(obj)) {
+    return SWIG_ConvertPtr(obj, ptr, ty, 0);
+  } else {
+    void *vptr = 0;
+    
+    /* here we get the method pointer for callbacks */
+    const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
+    const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
+    if (desc)
+      desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
+    if (!desc) 
+      return SWIG_ERROR;
+    if (ty) {
+      swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
+      if (tc) {
+        int newmemory = 0;
+        *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
+        assert(!newmemory); /* newmemory handling not yet implemented */
+      } else {
+        return SWIG_ERROR;
+      }
+    } else {
+      *ptr = vptr;
+    }
+    return SWIG_OK;
+  }
+}
+
+/* Convert a packed value value */
+
+SWIGRUNTIME int
+SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
+  swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz);
+  if (!to) return SWIG_ERROR;
+  if (ty) {
+    if (to != ty) {
+      /* check type cast? */
+      swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
+      if (!tc) return SWIG_ERROR;
+    }
+  }
+  return SWIG_OK;
+}  
+
+/* -----------------------------------------------------------------------------
+ * Create a new pointer object
+ * ----------------------------------------------------------------------------- */
+
+/*
+  Create a new instance object, without calling __init__, and set the
+  'this' attribute.
+*/
+
+SWIGRUNTIME PyObject* 
+SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
+{
+#if (PY_VERSION_HEX >= 0x02020000)
+  PyObject *inst = 0;
+  PyObject *newraw = data->newraw;
+  if (newraw) {
+    inst = PyObject_Call(newraw, data->newargs, NULL);
+    if (inst) {
+#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
+      PyObject **dictptr = _PyObject_GetDictPtr(inst);
+      if (dictptr != NULL) {
+	PyObject *dict = *dictptr;
+	if (dict == NULL) {
+	  dict = PyDict_New();
+	  *dictptr = dict;
+	  PyDict_SetItem(dict, SWIG_This(), swig_this);
+	}
+      }
+#else
+      PyObject *key = SWIG_This();
+      PyObject_SetAttr(inst, key, swig_this);
+#endif
+    }
+  } else {
+#if PY_VERSION_HEX >= 0x03000000
+    inst = PyBaseObject_Type.tp_new((PyTypeObject*) data->newargs, Py_None, Py_None);
+    PyObject_SetAttr(inst, SWIG_This(), swig_this);
+    Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG;
+#else
+    PyObject *dict = PyDict_New();
+    PyDict_SetItem(dict, SWIG_This(), swig_this);
+    inst = PyInstance_NewRaw(data->newargs, dict);
+    Py_DECREF(dict);
+#endif
+  }
+  return inst;
+#else
+#if (PY_VERSION_HEX >= 0x02010000)
+  PyObject *inst;
+  PyObject *dict = PyDict_New();
+  PyDict_SetItem(dict, SWIG_This(), swig_this);
+  inst = PyInstance_NewRaw(data->newargs, dict);
+  Py_DECREF(dict);
+  return (PyObject *) inst;
+#else
+  PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
+  if (inst == NULL) {
+    return NULL;
+  }
+  inst->in_class = (PyClassObject *)data->newargs;
+  Py_INCREF(inst->in_class);
+  inst->in_dict = PyDict_New();
+  if (inst->in_dict == NULL) {
+    Py_DECREF(inst);
+    return NULL;
+  }
+#ifdef Py_TPFLAGS_HAVE_WEAKREFS
+  inst->in_weakreflist = NULL;
+#endif
+#ifdef Py_TPFLAGS_GC
+  PyObject_GC_Init(inst);
+#endif
+  PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
+  return (PyObject *) inst;
+#endif
+#endif
+}
+
+SWIGRUNTIME void
+SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
+{
+ PyObject *dict;
+#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
+ PyObject **dictptr = _PyObject_GetDictPtr(inst);
+ if (dictptr != NULL) {
+   dict = *dictptr;
+   if (dict == NULL) {
+     dict = PyDict_New();
+     *dictptr = dict;
+   }
+   PyDict_SetItem(dict, SWIG_This(), swig_this);
+   return;
+ }
+#endif
+ dict = PyObject_GetAttrString(inst, (char*)"__dict__");
+ PyDict_SetItem(dict, SWIG_This(), swig_this);
+ Py_DECREF(dict);
+} 
+
+
+SWIGINTERN PyObject *
+SWIG_Python_InitShadowInstance(PyObject *args) {
+  PyObject *obj[2];
+  if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
+    return NULL;
+  } else {
+    SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
+    if (sthis) {
+      SwigPyObject_append((PyObject*) sthis, obj[1]);
+    } else {
+      SWIG_Python_SetSwigThis(obj[0], obj[1]);
+    }
+    return SWIG_Py_Void();
+  }
+}
+
+/* Create a new pointer object */
+
+SWIGRUNTIME PyObject *
+SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
+  if (!ptr) {
+    return SWIG_Py_Void();
+  } else {
+    int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
+    PyObject *robj = SwigPyObject_New(ptr, type, own);
+    SwigPyClientData *clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0;
+    if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
+      PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
+      if (inst) {
+	Py_DECREF(robj);
+	robj = inst;
+      }
+    }
+    return robj;
+  }
+}
+
+/* Create a new packed object */
+
+SWIGRUNTIMEINLINE PyObject *
+SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
+  return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
+}
+
+/* -----------------------------------------------------------------------------*
+ *  Get type list 
+ * -----------------------------------------------------------------------------*/
+
+#ifdef SWIG_LINK_RUNTIME
+void *SWIG_ReturnGlobalTypeList(void *);
+#endif
+
+SWIGRUNTIME swig_module_info *
+SWIG_Python_GetModule(void) {
+  static void *type_pointer = (void *)0;
+  /* first check if module already created */
+  if (!type_pointer) {
+#ifdef SWIG_LINK_RUNTIME
+    type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
+#else
+    type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
+				    (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
+    if (PyErr_Occurred()) {
+      PyErr_Clear();
+      type_pointer = (void *)0;
+    }
+#endif
+  }
+  return (swig_module_info *) type_pointer;
+}
+
+#if PY_MAJOR_VERSION < 2
+/* PyModule_AddObject function was introduced in Python 2.0.  The following function
+   is copied out of Python/modsupport.c in python version 2.3.4 */
+SWIGINTERN int
+PyModule_AddObject(PyObject *m, char *name, PyObject *o)
+{
+  PyObject *dict;
+  if (!PyModule_Check(m)) {
+    PyErr_SetString(PyExc_TypeError,
+		    "PyModule_AddObject() needs module as first arg");
+    return SWIG_ERROR;
+  }
+  if (!o) {
+    PyErr_SetString(PyExc_TypeError,
+		    "PyModule_AddObject() needs non-NULL value");
+    return SWIG_ERROR;
+  }
+  
+  dict = PyModule_GetDict(m);
+  if (dict == NULL) {
+    /* Internal error -- modules must have a dict! */
+    PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
+		 PyModule_GetName(m));
+    return SWIG_ERROR;
+  }
+  if (PyDict_SetItemString(dict, name, o))
+    return SWIG_ERROR;
+  Py_DECREF(o);
+  return SWIG_OK;
+}
+#endif
+
+SWIGRUNTIME void
+SWIG_Python_DestroyModule(void *vptr)
+{
+  swig_module_info *swig_module = (swig_module_info *) vptr;
+  swig_type_info **types = swig_module->types;
+  size_t i;
+  for (i =0; i < swig_module->size; ++i) {
+    swig_type_info *ty = types[i];
+    if (ty->owndata) {
+      SwigPyClientData *data = (SwigPyClientData *) ty->clientdata;
+      if (data) SwigPyClientData_Del(data);
+    }
+  }
+  Py_DECREF(SWIG_This());
+}
+
+SWIGRUNTIME void
+SWIG_Python_SetModule(swig_module_info *swig_module) {
+  static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
+
+#if PY_VERSION_HEX >= 0x03000000
+ /* Add a dummy module object into sys.modules */
+  PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION);
+#else
+  PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
+				   swig_empty_runtime_method_table);
+#endif
+  PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
+  if (pointer && module) {
+    PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
+  } else {
+    Py_XDECREF(pointer);
+  }
+}
+
+/* The python cached type query */
+SWIGRUNTIME PyObject *
+SWIG_Python_TypeCache(void) {
+  static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
+  return cache;
+}
+
+SWIGRUNTIME swig_type_info *
+SWIG_Python_TypeQuery(const char *type)
+{
+  PyObject *cache = SWIG_Python_TypeCache();
+  PyObject *key = SWIG_Python_str_FromChar(type); 
+  PyObject *obj = PyDict_GetItem(cache, key);
+  swig_type_info *descriptor;
+  if (obj) {
+    descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
+  } else {
+    swig_module_info *swig_module = SWIG_Python_GetModule();
+    descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
+    if (descriptor) {
+      obj = PyCObject_FromVoidPtr(descriptor, NULL);
+      PyDict_SetItem(cache, key, obj);
+      Py_DECREF(obj);
+    }
+  }
+  Py_DECREF(key);
+  return descriptor;
+}
+
+/* 
+   For backward compatibility only
+*/
+#define SWIG_POINTER_EXCEPTION  0
+#define SWIG_arg_fail(arg)      SWIG_Python_ArgFail(arg)
+#define SWIG_MustGetPtr(p, type, argnum, flags)  SWIG_Python_MustGetPtr(p, type, argnum, flags)
+
+SWIGRUNTIME int
+SWIG_Python_AddErrMesg(const char* mesg, int infront)
+{  
+  if (PyErr_Occurred()) {
+    PyObject *type = 0;
+    PyObject *value = 0;
+    PyObject *traceback = 0;
+    PyErr_Fetch(&type, &value, &traceback);
+    if (value) {
+      char *tmp;
+      PyObject *old_str = PyObject_Str(value);
+      Py_XINCREF(type);
+      PyErr_Clear();
+      if (infront) {
+	PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str));
+      } else {
+	PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
+      }
+      SWIG_Python_str_DelForPy3(tmp);
+      Py_DECREF(old_str);
+    }
+    return 1;
+  } else {
+    return 0;
+  }
+}
+  
+SWIGRUNTIME int
+SWIG_Python_ArgFail(int argnum)
+{
+  if (PyErr_Occurred()) {
+    /* add information about failing argument */
+    char mesg[256];
+    PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
+    return SWIG_Python_AddErrMesg(mesg, 1);
+  } else {
+    return 0;
+  }
+}
+
+SWIGRUNTIMEINLINE const char *
+SwigPyObject_GetDesc(PyObject *self)
+{
+  SwigPyObject *v = (SwigPyObject *)self;
+  swig_type_info *ty = v ? v->ty : 0;
+  return ty ? ty->str : (char*)"";
+}
+
+SWIGRUNTIME void
+SWIG_Python_TypeError(const char *type, PyObject *obj)
+{
+  if (type) {
+#if defined(SWIG_COBJECT_TYPES)
+    if (obj && SwigPyObject_Check(obj)) {
+      const char *otype = (const char *) SwigPyObject_GetDesc(obj);
+      if (otype) {
+	PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received",
+		     type, otype);
+	return;
+      }
+    } else 
+#endif      
+    {
+      const char *otype = (obj ? obj->ob_type->tp_name : 0); 
+      if (otype) {
+	PyObject *str = PyObject_Str(obj);
+	const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0;
+	if (cstr) {
+	  PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
+		       type, otype, cstr);
+          SWIG_Python_str_DelForPy3(cstr);
+	} else {
+	  PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
+		       type, otype);
+	}
+	Py_XDECREF(str);
+	return;
+      }
+    }   
+    PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
+  } else {
+    PyErr_Format(PyExc_TypeError, "unexpected type is received");
+  }
+}
+
+
+/* Convert a pointer value, signal an exception on a type mismatch */
+SWIGRUNTIME void *
+SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
+  void *result;
+  if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
+    PyErr_Clear();
+#if SWIG_POINTER_EXCEPTION
+    if (flags) {
+      SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
+      SWIG_Python_ArgFail(argnum);
+    }
+#endif
+  }
+  return result;
+}
+
+
+#ifdef __cplusplus
+#if 0
+{ /* cc-mode */
+#endif
+}
+#endif
+
+
+
+#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) 
+
+#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else 
+
+
+
+/* -------- TYPES TABLE (BEGIN) -------- */
+
+#define SWIGTYPE_p_attrl swig_types[0]
+#define SWIGTYPE_p_attropl swig_types[1]
+#define SWIGTYPE_p_batch_status swig_types[2]
+#define SWIGTYPE_p_char swig_types[3]
+#define SWIGTYPE_p_int swig_types[4]
+#define SWIGTYPE_p_long swig_types[5]
+#define SWIGTYPE_p_p_char swig_types[6]
+static swig_type_info *swig_types[8];
+static swig_module_info swig_module = {swig_types, 7, 0, 0, 0, 0};
+#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
+#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
+
+/* -------- TYPES TABLE (END) -------- */
+
+#if (PY_VERSION_HEX <= 0x02000000)
+# if !defined(SWIG_PYTHON_CLASSIC)
+#  error "This python version requires swig to be run with the '-classic' option"
+# endif
+#endif
+
+/*-----------------------------------------------
+              @(target):= _pbs.so
+  ------------------------------------------------*/
+#if PY_VERSION_HEX >= 0x03000000
+#  define SWIG_init    PyInit__pbs
+
+#else
+#  define SWIG_init    init_pbs
+
+#endif
+#define SWIG_name    "_pbs"
+
+#define SWIGVERSION 0x010340 
+#define SWIG_VERSION SWIGVERSION
+
+
+#define SWIG_as_voidptr(a) (void *)((const void *)(a)) 
+#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a)) 
+
+
+
+#include "pbs_ifl.h"
+#include "pbs_error.h"
+#include "rm.h"
+#include "log.h"
+
+#define SARA_DEBUG 0
+
+//extern int pbs_errno;
+
+
+
+int Get_List_Size(PyObject *src)
+{
+  if (PyList_Check(src))
+    return(PyList_Size(src));
+
+  /* check if valid NULL pointer */
+  if ( PyString_Check(src) ) {
+    if ( ! strcmp(PyString_AsString(src), "NULL") )
+      return(0);
+  }
+  return(-1);
+
+} // end Get_List_Size()
+
+
+
+
+// The default constructor for struct attrl
+//
+struct attrl *new_attrl(int number)
+{
+  struct attrl *ptr;
+  struct attrl *prev, *current;
+  int i;
+
+  /* 
+    allocate memory as a one block is handy for Python scripts 
+    and fill in the next fields so it also works for the C-library
+  */
+  ptr = (struct attrl *) malloc(number * sizeof(struct attrl));
+
+  prev = NULL;
+  current = ptr + (number - 1);
+  for (i=0; i < number; i++)
+  { 
+    // printf("constructor called\n");
+    current->name     = (char *) malloc(MAXNAMLEN * sizeof(char));
+    current->resource = (char *) malloc(MAXNAMLEN * sizeof(char));
+    current->value    = (char *) malloc(MAXNAMLEN * sizeof(char));
+
+    bzero( (void*) current->name, sizeof(current->name));
+    bzero( (void*) current->resource, sizeof(current->resource));
+    bzero( (void*) current->value, sizeof(current->value));
+
+    current->next     = prev;
+    prev = current;
+    current--;
+  }
+  return (struct attrl *)ptr;
+
+} // end new_attrl()
+
+
+
+// The default constructor for struct attropl
+//
+struct attropl *new_attropl(int number)
+{
+  struct attropl *ptr;
+  struct attropl *prev, *current;
+  int i;
+
+  /* 
+    allocate memory as a one block is handy for Python scripts 
+    and fill in the next fields so it also works for the C-library
+  */
+  ptr = (struct attropl *) malloc(number * sizeof(struct attropl));
+
+  prev = NULL;
+  current = ptr + (number - 1);
+  for (i=0; i < number; i++)
+  { 
+    // printf("constructor called\n");
+    current->name     = (char *) malloc(MAXNAMLEN * sizeof(char));
+    current->resource = (char *) malloc(MAXNAMLEN * sizeof(char));
+    current->value    = (char *) malloc(MAXNAMLEN * sizeof(char));
+
+    bzero( (void*) current->name, sizeof(current->name));
+    bzero( (void*) current->resource, sizeof(current->resource));
+    bzero( (void*) current->value, sizeof(current->value));
+    current->op = 0;
+
+    current->next     = prev;
+    prev = current;
+    current--;
+  }
+  return (struct attropl *)ptr;
+
+} // end new_attropl()
+
+/* Not used only returned */
+struct batch_status *new_batch_status()
+{
+   struct batch_status *ptr;
+
+   ptr = (struct batch_status *) malloc(sizeof(struct batch_status));
+   return (struct batch_status *)ptr;
+} // end new struct batch_status
+
+int get_error()
+{
+   char *errmsg;
+
+   errmsg = pbse_to_txt(pbs_errno);
+   if (SARA_DEBUG)
+   {
+      printf("Bas = %d\n", pbs_errno);
+      printf("Bas = %d, text = %s\n", pbs_errno, errmsg);
+   }
+   return (pbs_errno);
+}
+
+
+
+
+#include <limits.h>
+#if !defined(SWIG_NO_LLONG_MAX)
+# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
+#   define LLONG_MAX __LONG_LONG_MAX__
+#   define LLONG_MIN (-LLONG_MAX - 1LL)
+#   define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
+# endif
+#endif
+
+
+SWIGINTERN int
+SWIG_AsVal_double (PyObject *obj, double *val)
+{
+  int res = SWIG_TypeError;
+  if (PyFloat_Check(obj)) {
+    if (val) *val = PyFloat_AsDouble(obj);
+    return SWIG_OK;
+  } else if (PyInt_Check(obj)) {
+    if (val) *val = PyInt_AsLong(obj);
+    return SWIG_OK;
+  } else if (PyLong_Check(obj)) {
+    double v = PyLong_AsDouble(obj);
+    if (!PyErr_Occurred()) {
+      if (val) *val = v;
+      return SWIG_OK;
+    } else {
+      PyErr_Clear();
+    }
+  }
+#ifdef SWIG_PYTHON_CAST_MODE
+  {
+    int dispatch = 0;
+    double d = PyFloat_AsDouble(obj);
+    if (!PyErr_Occurred()) {
+      if (val) *val = d;
+      return SWIG_AddCast(SWIG_OK);
+    } else {
+      PyErr_Clear();
+    }
+    if (!dispatch) {
+      long v = PyLong_AsLong(obj);
+      if (!PyErr_Occurred()) {
+	if (val) *val = v;
+	return SWIG_AddCast(SWIG_AddCast(SWIG_OK));
+      } else {
+	PyErr_Clear();
+      }
+    }
+  }
+#endif
+  return res;
+}
+
+
+#include <float.h>
+
+
+#include <math.h>
+
+
+SWIGINTERNINLINE int
+SWIG_CanCastAsInteger(double *d, double min, double max) {
+  double x = *d;
+  if ((min <= x && x <= max)) {
+   double fx = floor(x);
+   double cx = ceil(x);
+   double rd =  ((x - fx) < 0.5) ? fx : cx; /* simple rint */
+   if ((errno == EDOM) || (errno == ERANGE)) {
+     errno = 0;
+   } else {
+     double summ, reps, diff;
+     if (rd < x) {
+       diff = x - rd;
+     } else if (rd > x) {
+       diff = rd - x;
+     } else {
+       return 1;
+     }
+     summ = rd + x;
+     reps = diff/summ;
+     if (reps < 8*DBL_EPSILON) {
+       *d = rd;
+       return 1;
+     }
+   }
+  }
+  return 0;
+}
+
+
+SWIGINTERN int
+SWIG_AsVal_long (PyObject *obj, long* val)
+{
+  if (PyInt_Check(obj)) {
+    if (val) *val = PyInt_AsLong(obj);
+    return SWIG_OK;
+  } else if (PyLong_Check(obj)) {
+    long v = PyLong_AsLong(obj);
+    if (!PyErr_Occurred()) {
+      if (val) *val = v;
+      return SWIG_OK;
+    } else {
+      PyErr_Clear();
+    }
+  }
+#ifdef SWIG_PYTHON_CAST_MODE
+  {
+    int dispatch = 0;
+    long v = PyInt_AsLong(obj);
+    if (!PyErr_Occurred()) {
+      if (val) *val = v;
+      return SWIG_AddCast(SWIG_OK);
+    } else {
+      PyErr_Clear();
+    }
+    if (!dispatch) {
+      double d;
+      int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
+      if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) {
+	if (val) *val = (long)(d);
+	return res;
+      }
+    }
+  }
+#endif
+  return SWIG_TypeError;
+}
+
+
+SWIGINTERN int
+SWIG_AsVal_int (PyObject * obj, int *val)
+{
+  long v;
+  int res = SWIG_AsVal_long (obj, &v);
+  if (SWIG_IsOK(res)) {
+    if ((v < INT_MIN || v > INT_MAX)) {
+      return SWIG_OverflowError;
+    } else {
+      if (val) *val = (int)(v);
+    }
+  }  
+  return res;
+}
+
+
+  #define SWIG_From_long   PyInt_FromLong 
+
+
+SWIGINTERNINLINE PyObject *
+SWIG_From_int  (int value)
+{    
+  return SWIG_From_long  (value);
+}
+
+
+SWIGINTERN swig_type_info*
+SWIG_pchar_descriptor(void)
+{
+  static int init = 0;
+  static swig_type_info* info = 0;
+  if (!init) {
+    info = SWIG_TypeQuery("_p_char");
+    init = 1;
+  }
+  return info;
+}
+
+
+SWIGINTERNINLINE PyObject *
+SWIG_FromCharPtrAndSize(const char* carray, size_t size)
+{
+  if (carray) {
+    if (size > INT_MAX) {
+      swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
+      return pchar_descriptor ? 
+	SWIG_NewPointerObj((char *)(carray), pchar_descriptor, 0) : SWIG_Py_Void();
+    } else {
+#if PY_VERSION_HEX >= 0x03000000
+      return PyUnicode_FromStringAndSize(carray, (int)(size));
+#else
+      return PyString_FromStringAndSize(carray, (int)(size));
+#endif
+    }
+  } else {
+    return SWIG_Py_Void();
+  }
+}
+
+
+SWIGINTERNINLINE PyObject * 
+SWIG_FromCharPtr(const char *cptr)
+{ 
+  return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
+}
+
+
+SWIGINTERN int
+SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
+{
+#if PY_VERSION_HEX>=0x03000000
+  if (PyUnicode_Check(obj))
+#else  
+  if (PyString_Check(obj))
+#endif
+  {
+    char *cstr; Py_ssize_t len;
+#if PY_VERSION_HEX>=0x03000000
+    if (!alloc && cptr) {
+        /* We can't allow converting without allocation, since the internal
+           representation of string in Python 3 is UCS-2/UCS-4 but we require
+           a UTF-8 representation.
+           TODO(bhy) More detailed explanation */
+        return SWIG_RuntimeError;
+    }
+    obj = PyUnicode_AsUTF8String(obj);
+    PyBytes_AsStringAndSize(obj, &cstr, &len);
+    if(alloc) *alloc = SWIG_NEWOBJ;
+#else
+    PyString_AsStringAndSize(obj, &cstr, &len);
+#endif
+    if (cptr) {
+      if (alloc) {
+	/* 
+	   In python the user should not be able to modify the inner
+	   string representation. To warranty that, if you define
+	   SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string
+	   buffer is always returned.
+
+	   The default behavior is just to return the pointer value,
+	   so, be careful.
+	*/ 
+#if defined(SWIG_PYTHON_SAFE_CSTRINGS)
+	if (*alloc != SWIG_OLDOBJ) 
+#else
+	if (*alloc == SWIG_NEWOBJ) 
+#endif
+	  {
+	    *cptr = (char *)memcpy((char *)malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1));
+	    *alloc = SWIG_NEWOBJ;
+	  }
+	else {
+	  *cptr = cstr;
+	  *alloc = SWIG_OLDOBJ;
+	}
+      } else {
+        #if PY_VERSION_HEX>=0x03000000
+        assert(0); /* Should never reach here in Python 3 */
+        #endif
+	*cptr = SWIG_Python_str_AsChar(obj);
+      }
+    }
+    if (psize) *psize = len + 1;
+#if PY_VERSION_HEX>=0x03000000
+    Py_XDECREF(obj);
+#endif
+    return SWIG_OK;
+  } else {
+    swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
+    if (pchar_descriptor) {
+      void* vptr = 0;
+      if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
+	if (cptr) *cptr = (char *) vptr;
+	if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
+	if (alloc) *alloc = SWIG_OLDOBJ;
+	return SWIG_OK;
+      }
+    }
+  }
+  return SWIG_TypeError;
+}
+
+
+
+
+SWIGINTERN char *attrl___str__(struct attrl *self){
+    static char temp[4 * 255] ;
+    snprintf(temp, sizeof(temp), "(%s,%s,%s)", 
+      self->name, self->resource, self->value);
+    
+    return &temp[0];
+  }
+SWIGINTERN void delete_attrl(struct attrl *self){
+    if (SARA_DEBUG)
+       printf("Bas free attrl\n");
+
+    /*
+  	free(self);
+    */
+  }
+SWIGINTERN char *attropl___str__(struct attropl *self){
+    static char temp[4 * 255] ;
+    snprintf(temp, sizeof(temp), "(%s,%s,%s)", 
+      self->name, self->resource, self->value);
+    
+    return &temp[0];
+  }
+SWIGINTERN void delete_attropl(struct attropl *self){
+    if (SARA_DEBUG)
+       printf("Bas free attropl\n");
+
+    /*
+  	free(self);
+    */
+  }
+
+SWIGINTERN int
+SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val) 
+{
+  if (PyInt_Check(obj)) {
+    long v = PyInt_AsLong(obj);
+    if (v >= 0) {
+      if (val) *val = v;
+      return SWIG_OK;
+    } else {
+      return SWIG_OverflowError;
+    }
+  } else if (PyLong_Check(obj)) {
+    unsigned long v = PyLong_AsUnsignedLong(obj);
+    if (!PyErr_Occurred()) {
+      if (val) *val = v;
+      return SWIG_OK;
+    } else {
+      PyErr_Clear();
+    }
+  }
+#ifdef SWIG_PYTHON_CAST_MODE
+  {
+    int dispatch = 0;
+    unsigned long v = PyLong_AsUnsignedLong(obj);
+    if (!PyErr_Occurred()) {
+      if (val) *val = v;
+      return SWIG_AddCast(SWIG_OK);
+    } else {
+      PyErr_Clear();
+    }
+    if (!dispatch) {
+      double d;
+      int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
+      if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) {
+	if (val) *val = (unsigned long)(d);
+	return res;
+      }
+    }
+  }
+#endif
+  return SWIG_TypeError;
+}
+
+
+SWIGINTERN int
+SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
+{
+  unsigned long v;
+  int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
+  if (SWIG_IsOK(res)) {
+    if ((v > UINT_MAX)) {
+      return SWIG_OverflowError;
+    } else {
+      if (val) *val = (unsigned int)(v);
+    }
+  }  
+  return res;
+}
+
+
+SWIGINTERN int
+SWIG_AsCharArray(PyObject * obj, char *val, size_t size)
+{ 
+  char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ;
+  int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc);
+  if (SWIG_IsOK(res)) {
+    if ((csize == size + 1) && cptr && !(cptr[csize-1])) --csize;
+    if (csize <= size) {
+      if (val) {
+	if (csize) memcpy(val, cptr, csize*sizeof(char));
+	if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char));
+      }
+      if (alloc == SWIG_NEWOBJ) {
+	free((char*)cptr);
+	res = SWIG_DelNewMask(res);
+      }      
+      return res;
+    }
+    if (alloc == SWIG_NEWOBJ) free((char*)cptr);
+  }
+  return SWIG_TypeError;
+}
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+SWIGINTERN PyObject *_wrap_new_attrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  PyObject * obj0 = 0 ;
+  struct attrl *result = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:new_attrl",&obj0)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_attrl" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  result = (struct attrl *)new_attrl(arg1);
+  {
+    PyObject      *obj_batch;
+    struct attrl  *ptr;
+    int           i=0, len=0;
+    
+    if (SARA_DEBUG) printf("Converteren c (struct attrl *) -> python:\n");
+    
+    ptr = result;
+    while (ptr != NULL) {
+      len++;
+      ptr = ptr->next;
+    }
+    resultobj = PyList_New(len);
+    
+    if (SARA_DEBUG) printf("\tSize of List: %d\n", len);
+    
+    if (SARA_DEBUG) printf("\t<Contents>\n");
+    ptr = result;
+    for (i=0; i < len; i++) {
+      obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_attrl,1); 
+      PyList_SetItem(resultobj, i, obj_batch);
+      if (SARA_DEBUG) printf("\t\t- %s\n", ptr->name);
+      ptr = ptr->next;
+    }
+    if (SARA_DEBUG) printf("\t</Contents>\n");
+  }
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_new_attropl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  PyObject * obj0 = 0 ;
+  struct attropl *result = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:new_attropl",&obj0)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_attropl" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  result = (struct attropl *)new_attropl(arg1);
+  {
+    PyObject          *obj_batch;
+    struct attropl    *ptr;
+    int               i=0, len=0;
+    
+    if (SARA_DEBUG) printf("Converteren c (struct attropl *) -> python:\n");
+    
+    ptr = result;
+    while (ptr != NULL) {
+      len++;
+      ptr = ptr->next;
+    }
+    resultobj = PyList_New(len);
+    if (SARA_DEBUG) printf("\tSize of List: %d\n", len);
+    
+    if (SARA_DEBUG) printf("\t<Contents>\n");
+    ptr = result;
+    for (i=0; i < len; i++) {
+      obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_attropl,1); 
+      PyList_SetItem(resultobj, i, obj_batch); 
+      ptr = ptr->next;
+    }
+    if (SARA_DEBUG) printf("\t</Contents>\n");
+  }
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_new_batch_status(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct batch_status *result = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)":new_batch_status")) SWIG_fail;
+  result = (struct batch_status *)new_batch_status();
+  {
+    PyObject              *obj_batch;
+    struct batch_status   *ptr;
+    int                   i=0, len=0;
+    
+    // printf("Ja we are in bussniss\n");
+    if (SARA_DEBUG) printf("Converteren c (struct batch_status *) -> python:\n");
+    
+    // Deterime length of list
+    //
+    ptr = result;
+    while (ptr != NULL) {
+      len++;
+      ptr = ptr->next;
+    }
+    resultobj = PyList_New(len);
+    
+    if (SARA_DEBUG) printf("\tSize of List: %d\n", len);
+    
+    // Make a list of batch_status pointers
+    //
+    if (SARA_DEBUG) printf("\t<Contents>\n");
+    ptr = result;
+    for (i=0; i < len; i++) {
+      obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_batch_status,0); 
+      PyList_SetItem(resultobj, i, obj_batch);
+      if (SARA_DEBUG)  {
+        printf("\t\t- %s\n", ptr->name);
+      }
+      ptr = ptr->next;
+    }
+    
+    if (SARA_DEBUG) printf("\t</Contents>\n");
+  }
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_get_error(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)":get_error")) SWIG_fail;
+  result = (int)get_error();
+  resultobj = SWIG_From_int((int)(result));
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_attrl_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct attrl *arg1 = (struct attrl *) 0 ;
+  struct attrl *arg2 = (struct attrl *) 0 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  void *argp2 = 0 ;
+  int res2 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OO:attrl_next_set",&obj0,&obj1)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attrl, 0 |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attrl_next_set" "', argument " "1"" of type '" "struct attrl *""'"); 
+  }
+  arg1 = (struct attrl *)(argp1);
+  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_attrl, SWIG_POINTER_DISOWN |  0 );
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "attrl_next_set" "', argument " "2"" of type '" "struct attrl *""'"); 
+  }
+  arg2 = (struct attrl *)(argp2);
+  if (arg1) (arg1)->next = arg2;
+  resultobj = SWIG_Py_Void();
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_attrl_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct attrl *arg1 = (struct attrl *) 0 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  PyObject * obj0 = 0 ;
+  struct attrl *result = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:attrl_next_get",&obj0)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attrl, 0 |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attrl_next_get" "', argument " "1"" of type '" "struct attrl *""'"); 
+  }
+  arg1 = (struct attrl *)(argp1);
+  result = (struct attrl *) ((arg1)->next);
+  {
+    PyObject      *obj_batch;
+    struct attrl  *ptr;
+    int           i=0, len=0;
+    
+    if (SARA_DEBUG) printf("Converteren c (struct attrl *) -> python:\n");
+    
+    ptr = result;
+    while (ptr != NULL) {
+      len++;
+      ptr = ptr->next;
+    }
+    resultobj = PyList_New(len);
+    
+    if (SARA_DEBUG) printf("\tSize of List: %d\n", len);
+    
+    if (SARA_DEBUG) printf("\t<Contents>\n");
+    ptr = result;
+    for (i=0; i < len; i++) {
+      obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_attrl,1); 
+      PyList_SetItem(resultobj, i, obj_batch);
+      if (SARA_DEBUG) printf("\t\t- %s\n", ptr->name);
+      ptr = ptr->next;
+    }
+    if (SARA_DEBUG) printf("\t</Contents>\n");
+  }
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_attrl_name_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct attrl *arg1 = (struct attrl *) 0 ;
+  char *arg2 = (char *) 0 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OO:attrl_name_set",&obj0,&obj1)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attrl, 0 |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attrl_name_set" "', argument " "1"" of type '" "struct attrl *""'"); 
+  }
+  arg1 = (struct attrl *)(argp1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "attrl_name_set" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  if (arg1->name) free((char*)arg1->name);
+  if (arg2) {
+    size_t size = strlen((const char *)(arg2)) + 1;
+    arg1->name = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
+  } else {
+    arg1->name = 0;
+  }
+  resultobj = SWIG_Py_Void();
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  return resultobj;
+fail:
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_attrl_name_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct attrl *arg1 = (struct attrl *) 0 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  PyObject * obj0 = 0 ;
+  char *result = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:attrl_name_get",&obj0)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attrl, 0 |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attrl_name_get" "', argument " "1"" of type '" "struct attrl *""'"); 
+  }
+  arg1 = (struct attrl *)(argp1);
+  result = (char *) ((arg1)->name);
+  resultobj = SWIG_FromCharPtr((const char *)result);
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_attrl_resource_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct attrl *arg1 = (struct attrl *) 0 ;
+  char *arg2 = (char *) 0 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OO:attrl_resource_set",&obj0,&obj1)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attrl, 0 |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attrl_resource_set" "', argument " "1"" of type '" "struct attrl *""'"); 
+  }
+  arg1 = (struct attrl *)(argp1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "attrl_resource_set" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  if (arg1->resource) free((char*)arg1->resource);
+  if (arg2) {
+    size_t size = strlen((const char *)(arg2)) + 1;
+    arg1->resource = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
+  } else {
+    arg1->resource = 0;
+  }
+  resultobj = SWIG_Py_Void();
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  return resultobj;
+fail:
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_attrl_resource_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct attrl *arg1 = (struct attrl *) 0 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  PyObject * obj0 = 0 ;
+  char *result = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:attrl_resource_get",&obj0)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attrl, 0 |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attrl_resource_get" "', argument " "1"" of type '" "struct attrl *""'"); 
+  }
+  arg1 = (struct attrl *)(argp1);
+  result = (char *) ((arg1)->resource);
+  resultobj = SWIG_FromCharPtr((const char *)result);
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_attrl_value_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct attrl *arg1 = (struct attrl *) 0 ;
+  char *arg2 = (char *) 0 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OO:attrl_value_set",&obj0,&obj1)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attrl, 0 |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attrl_value_set" "', argument " "1"" of type '" "struct attrl *""'"); 
+  }
+  arg1 = (struct attrl *)(argp1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "attrl_value_set" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  if (arg1->value) free((char*)arg1->value);
+  if (arg2) {
+    size_t size = strlen((const char *)(arg2)) + 1;
+    arg1->value = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
+  } else {
+    arg1->value = 0;
+  }
+  resultobj = SWIG_Py_Void();
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  return resultobj;
+fail:
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_attrl_value_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct attrl *arg1 = (struct attrl *) 0 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  PyObject * obj0 = 0 ;
+  char *result = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:attrl_value_get",&obj0)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attrl, 0 |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attrl_value_get" "', argument " "1"" of type '" "struct attrl *""'"); 
+  }
+  arg1 = (struct attrl *)(argp1);
+  result = (char *) ((arg1)->value);
+  resultobj = SWIG_FromCharPtr((const char *)result);
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_attrl_op_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct attrl *arg1 = (struct attrl *) 0 ;
+  enum batch_op arg2 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  int val2 ;
+  int ecode2 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OO:attrl_op_set",&obj0,&obj1)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attrl, 0 |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attrl_op_set" "', argument " "1"" of type '" "struct attrl *""'"); 
+  }
+  arg1 = (struct attrl *)(argp1);
+  ecode2 = SWIG_AsVal_int(obj1, &val2);
+  if (!SWIG_IsOK(ecode2)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "attrl_op_set" "', argument " "2"" of type '" "enum batch_op""'");
+  } 
+  arg2 = (enum batch_op)(val2);
+  if (arg1) (arg1)->op = arg2;
+  resultobj = SWIG_Py_Void();
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_attrl_op_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct attrl *arg1 = (struct attrl *) 0 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  PyObject * obj0 = 0 ;
+  enum batch_op result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:attrl_op_get",&obj0)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attrl, 0 |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attrl_op_get" "', argument " "1"" of type '" "struct attrl *""'"); 
+  }
+  arg1 = (struct attrl *)(argp1);
+  result = (enum batch_op) ((arg1)->op);
+  resultobj = SWIG_From_int((int)(result));
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_attrl___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct attrl *arg1 = (struct attrl *) 0 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  PyObject * obj0 = 0 ;
+  char *result = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:attrl___str__",&obj0)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attrl, 0 |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attrl___str__" "', argument " "1"" of type '" "struct attrl *""'"); 
+  }
+  arg1 = (struct attrl *)(argp1);
+  result = (char *)attrl___str__(arg1);
+  resultobj = SWIG_FromCharPtr((const char *)result);
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_delete_attrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct attrl *arg1 = (struct attrl *) 0 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  PyObject * obj0 = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:delete_attrl",&obj0)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attrl, SWIG_POINTER_DISOWN |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_attrl" "', argument " "1"" of type '" "struct attrl *""'"); 
+  }
+  arg1 = (struct attrl *)(argp1);
+  delete_attrl(arg1);
+  resultobj = SWIG_Py_Void();
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *attrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *obj;
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
+  SWIG_TypeNewClientData(SWIGTYPE_p_attrl, SWIG_NewClientData(obj));
+  return SWIG_Py_Void();
+}
+
+SWIGINTERN PyObject *_wrap_attropl_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct attropl *arg1 = (struct attropl *) 0 ;
+  struct attropl *arg2 = (struct attropl *) 0 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  void *argp2 = 0 ;
+  int res2 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OO:attropl_next_set",&obj0,&obj1)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attropl, 0 |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attropl_next_set" "', argument " "1"" of type '" "struct attropl *""'"); 
+  }
+  arg1 = (struct attropl *)(argp1);
+  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_attropl, SWIG_POINTER_DISOWN |  0 );
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "attropl_next_set" "', argument " "2"" of type '" "struct attropl *""'"); 
+  }
+  arg2 = (struct attropl *)(argp2);
+  if (arg1) (arg1)->next = arg2;
+  resultobj = SWIG_Py_Void();
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_attropl_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct attropl *arg1 = (struct attropl *) 0 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  PyObject * obj0 = 0 ;
+  struct attropl *result = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:attropl_next_get",&obj0)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attropl, 0 |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attropl_next_get" "', argument " "1"" of type '" "struct attropl *""'"); 
+  }
+  arg1 = (struct attropl *)(argp1);
+  result = (struct attropl *) ((arg1)->next);
+  {
+    PyObject          *obj_batch;
+    struct attropl    *ptr;
+    int               i=0, len=0;
+    
+    if (SARA_DEBUG) printf("Converteren c (struct attropl *) -> python:\n");
+    
+    ptr = result;
+    while (ptr != NULL) {
+      len++;
+      ptr = ptr->next;
+    }
+    resultobj = PyList_New(len);
+    if (SARA_DEBUG) printf("\tSize of List: %d\n", len);
+    
+    if (SARA_DEBUG) printf("\t<Contents>\n");
+    ptr = result;
+    for (i=0; i < len; i++) {
+      obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_attropl,1); 
+      PyList_SetItem(resultobj, i, obj_batch); 
+      ptr = ptr->next;
+    }
+    if (SARA_DEBUG) printf("\t</Contents>\n");
+  }
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_attropl_name_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct attropl *arg1 = (struct attropl *) 0 ;
+  char *arg2 = (char *) 0 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OO:attropl_name_set",&obj0,&obj1)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attropl, 0 |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attropl_name_set" "', argument " "1"" of type '" "struct attropl *""'"); 
+  }
+  arg1 = (struct attropl *)(argp1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "attropl_name_set" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  if (arg1->name) free((char*)arg1->name);
+  if (arg2) {
+    size_t size = strlen((const char *)(arg2)) + 1;
+    arg1->name = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
+  } else {
+    arg1->name = 0;
+  }
+  resultobj = SWIG_Py_Void();
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  return resultobj;
+fail:
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_attropl_name_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct attropl *arg1 = (struct attropl *) 0 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  PyObject * obj0 = 0 ;
+  char *result = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:attropl_name_get",&obj0)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attropl, 0 |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attropl_name_get" "', argument " "1"" of type '" "struct attropl *""'"); 
+  }
+  arg1 = (struct attropl *)(argp1);
+  result = (char *) ((arg1)->name);
+  resultobj = SWIG_FromCharPtr((const char *)result);
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_attropl_resource_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct attropl *arg1 = (struct attropl *) 0 ;
+  char *arg2 = (char *) 0 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OO:attropl_resource_set",&obj0,&obj1)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attropl, 0 |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attropl_resource_set" "', argument " "1"" of type '" "struct attropl *""'"); 
+  }
+  arg1 = (struct attropl *)(argp1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "attropl_resource_set" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  if (arg1->resource) free((char*)arg1->resource);
+  if (arg2) {
+    size_t size = strlen((const char *)(arg2)) + 1;
+    arg1->resource = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
+  } else {
+    arg1->resource = 0;
+  }
+  resultobj = SWIG_Py_Void();
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  return resultobj;
+fail:
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_attropl_resource_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct attropl *arg1 = (struct attropl *) 0 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  PyObject * obj0 = 0 ;
+  char *result = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:attropl_resource_get",&obj0)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attropl, 0 |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attropl_resource_get" "', argument " "1"" of type '" "struct attropl *""'"); 
+  }
+  arg1 = (struct attropl *)(argp1);
+  result = (char *) ((arg1)->resource);
+  resultobj = SWIG_FromCharPtr((const char *)result);
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_attropl_value_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct attropl *arg1 = (struct attropl *) 0 ;
+  char *arg2 = (char *) 0 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OO:attropl_value_set",&obj0,&obj1)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attropl, 0 |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attropl_value_set" "', argument " "1"" of type '" "struct attropl *""'"); 
+  }
+  arg1 = (struct attropl *)(argp1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "attropl_value_set" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  if (arg1->value) free((char*)arg1->value);
+  if (arg2) {
+    size_t size = strlen((const char *)(arg2)) + 1;
+    arg1->value = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
+  } else {
+    arg1->value = 0;
+  }
+  resultobj = SWIG_Py_Void();
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  return resultobj;
+fail:
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_attropl_value_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct attropl *arg1 = (struct attropl *) 0 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  PyObject * obj0 = 0 ;
+  char *result = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:attropl_value_get",&obj0)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attropl, 0 |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attropl_value_get" "', argument " "1"" of type '" "struct attropl *""'"); 
+  }
+  arg1 = (struct attropl *)(argp1);
+  result = (char *) ((arg1)->value);
+  resultobj = SWIG_FromCharPtr((const char *)result);
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_attropl_op_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct attropl *arg1 = (struct attropl *) 0 ;
+  enum batch_op arg2 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  int val2 ;
+  int ecode2 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OO:attropl_op_set",&obj0,&obj1)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attropl, 0 |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attropl_op_set" "', argument " "1"" of type '" "struct attropl *""'"); 
+  }
+  arg1 = (struct attropl *)(argp1);
+  ecode2 = SWIG_AsVal_int(obj1, &val2);
+  if (!SWIG_IsOK(ecode2)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "attropl_op_set" "', argument " "2"" of type '" "enum batch_op""'");
+  } 
+  arg2 = (enum batch_op)(val2);
+  if (arg1) (arg1)->op = arg2;
+  resultobj = SWIG_Py_Void();
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_attropl_op_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct attropl *arg1 = (struct attropl *) 0 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  PyObject * obj0 = 0 ;
+  enum batch_op result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:attropl_op_get",&obj0)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attropl, 0 |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attropl_op_get" "', argument " "1"" of type '" "struct attropl *""'"); 
+  }
+  arg1 = (struct attropl *)(argp1);
+  result = (enum batch_op) ((arg1)->op);
+  resultobj = SWIG_From_int((int)(result));
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_attropl___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct attropl *arg1 = (struct attropl *) 0 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  PyObject * obj0 = 0 ;
+  char *result = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:attropl___str__",&obj0)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attropl, 0 |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attropl___str__" "', argument " "1"" of type '" "struct attropl *""'"); 
+  }
+  arg1 = (struct attropl *)(argp1);
+  result = (char *)attropl___str__(arg1);
+  resultobj = SWIG_FromCharPtr((const char *)result);
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_delete_attropl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct attropl *arg1 = (struct attropl *) 0 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  PyObject * obj0 = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:delete_attropl",&obj0)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attropl, SWIG_POINTER_DISOWN |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_attropl" "', argument " "1"" of type '" "struct attropl *""'"); 
+  }
+  arg1 = (struct attropl *)(argp1);
+  delete_attropl(arg1);
+  resultobj = SWIG_Py_Void();
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *attropl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *obj;
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
+  SWIG_TypeNewClientData(SWIGTYPE_p_attropl, SWIG_NewClientData(obj));
+  return SWIG_Py_Void();
+}
+
+SWIGINTERN PyObject *_wrap_batch_status_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct batch_status *arg1 = (struct batch_status *) 0 ;
+  struct batch_status *arg2 = (struct batch_status *) 0 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  void *argp2 = 0 ;
+  int res2 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OO:batch_status_next_set",&obj0,&obj1)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_batch_status, 0 |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "batch_status_next_set" "', argument " "1"" of type '" "struct batch_status *""'"); 
+  }
+  arg1 = (struct batch_status *)(argp1);
+  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_batch_status, SWIG_POINTER_DISOWN |  0 );
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "batch_status_next_set" "', argument " "2"" of type '" "struct batch_status *""'"); 
+  }
+  arg2 = (struct batch_status *)(argp2);
+  if (arg1) (arg1)->next = arg2;
+  resultobj = SWIG_Py_Void();
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_batch_status_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct batch_status *arg1 = (struct batch_status *) 0 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  PyObject * obj0 = 0 ;
+  struct batch_status *result = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:batch_status_next_get",&obj0)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_batch_status, 0 |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "batch_status_next_get" "', argument " "1"" of type '" "struct batch_status *""'"); 
+  }
+  arg1 = (struct batch_status *)(argp1);
+  result = (struct batch_status *) ((arg1)->next);
+  {
+    PyObject              *obj_batch;
+    struct batch_status   *ptr;
+    int                   i=0, len=0;
+    
+    // printf("Ja we are in bussniss\n");
+    if (SARA_DEBUG) printf("Converteren c (struct batch_status *) -> python:\n");
+    
+    // Deterime length of list
+    //
+    ptr = result;
+    while (ptr != NULL) {
+      len++;
+      ptr = ptr->next;
+    }
+    resultobj = PyList_New(len);
+    
+    if (SARA_DEBUG) printf("\tSize of List: %d\n", len);
+    
+    // Make a list of batch_status pointers
+    //
+    if (SARA_DEBUG) printf("\t<Contents>\n");
+    ptr = result;
+    for (i=0; i < len; i++) {
+      obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_batch_status,0); 
+      PyList_SetItem(resultobj, i, obj_batch);
+      if (SARA_DEBUG)  {
+        printf("\t\t- %s\n", ptr->name);
+      }
+      ptr = ptr->next;
+    }
+    
+    if (SARA_DEBUG) printf("\t</Contents>\n");
+  }
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_batch_status_name_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct batch_status *arg1 = (struct batch_status *) 0 ;
+  char *arg2 = (char *) 0 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OO:batch_status_name_set",&obj0,&obj1)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_batch_status, 0 |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "batch_status_name_set" "', argument " "1"" of type '" "struct batch_status *""'"); 
+  }
+  arg1 = (struct batch_status *)(argp1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "batch_status_name_set" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  if (arg1->name) free((char*)arg1->name);
+  if (arg2) {
+    size_t size = strlen((const char *)(arg2)) + 1;
+    arg1->name = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
+  } else {
+    arg1->name = 0;
+  }
+  resultobj = SWIG_Py_Void();
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  return resultobj;
+fail:
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_batch_status_name_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct batch_status *arg1 = (struct batch_status *) 0 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  PyObject * obj0 = 0 ;
+  char *result = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:batch_status_name_get",&obj0)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_batch_status, 0 |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "batch_status_name_get" "', argument " "1"" of type '" "struct batch_status *""'"); 
+  }
+  arg1 = (struct batch_status *)(argp1);
+  result = (char *) ((arg1)->name);
+  resultobj = SWIG_FromCharPtr((const char *)result);
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_batch_status_attribs_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct batch_status *arg1 = (struct batch_status *) 0 ;
+  struct attrl *arg2 = (struct attrl *) 0 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  void *argp2 = 0 ;
+  int res2 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OO:batch_status_attribs_set",&obj0,&obj1)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_batch_status, 0 |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "batch_status_attribs_set" "', argument " "1"" of type '" "struct batch_status *""'"); 
+  }
+  arg1 = (struct batch_status *)(argp1);
+  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_attrl, SWIG_POINTER_DISOWN |  0 );
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "batch_status_attribs_set" "', argument " "2"" of type '" "struct attrl *""'"); 
+  }
+  arg2 = (struct attrl *)(argp2);
+  if (arg1) (arg1)->attribs = arg2;
+  resultobj = SWIG_Py_Void();
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_batch_status_attribs_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct batch_status *arg1 = (struct batch_status *) 0 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  PyObject * obj0 = 0 ;
+  struct attrl *result = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:batch_status_attribs_get",&obj0)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_batch_status, 0 |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "batch_status_attribs_get" "', argument " "1"" of type '" "struct batch_status *""'"); 
+  }
+  arg1 = (struct batch_status *)(argp1);
+  result = (struct attrl *) ((arg1)->attribs);
+  {
+    PyObject      *obj_batch;
+    struct attrl  *ptr;
+    int           i=0, len=0;
+    
+    if (SARA_DEBUG) printf("Converteren c (struct attrl *) -> python:\n");
+    
+    ptr = result;
+    while (ptr != NULL) {
+      len++;
+      ptr = ptr->next;
+    }
+    resultobj = PyList_New(len);
+    
+    if (SARA_DEBUG) printf("\tSize of List: %d\n", len);
+    
+    if (SARA_DEBUG) printf("\t<Contents>\n");
+    ptr = result;
+    for (i=0; i < len; i++) {
+      obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_attrl,1); 
+      PyList_SetItem(resultobj, i, obj_batch);
+      if (SARA_DEBUG) printf("\t\t- %s\n", ptr->name);
+      ptr = ptr->next;
+    }
+    if (SARA_DEBUG) printf("\t</Contents>\n");
+  }
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_batch_status_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct batch_status *arg1 = (struct batch_status *) 0 ;
+  char *arg2 = (char *) 0 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OO:batch_status_text_set",&obj0,&obj1)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_batch_status, 0 |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "batch_status_text_set" "', argument " "1"" of type '" "struct batch_status *""'"); 
+  }
+  arg1 = (struct batch_status *)(argp1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "batch_status_text_set" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  if (arg1->text) free((char*)arg1->text);
+  if (arg2) {
+    size_t size = strlen((const char *)(arg2)) + 1;
+    arg1->text = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
+  } else {
+    arg1->text = 0;
+  }
+  resultobj = SWIG_Py_Void();
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  return resultobj;
+fail:
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_batch_status_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct batch_status *arg1 = (struct batch_status *) 0 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  PyObject * obj0 = 0 ;
+  char *result = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:batch_status_text_get",&obj0)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_batch_status, 0 |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "batch_status_text_get" "', argument " "1"" of type '" "struct batch_status *""'"); 
+  }
+  arg1 = (struct batch_status *)(argp1);
+  result = (char *) ((arg1)->text);
+  resultobj = SWIG_FromCharPtr((const char *)result);
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *batch_status_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *obj;
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
+  SWIG_TypeNewClientData(SWIGTYPE_p_batch_status, SWIG_NewClientData(obj));
+  return SWIG_Py_Void();
+}
+
+SWIGINTERN int Swig_var_pbs_errno_set(PyObject *_val) {
+  {
+    int val;
+    int res = SWIG_AsVal_int(_val, &val);
+    if (!SWIG_IsOK(res)) {
+      SWIG_exception_fail(SWIG_ArgError(res), "in variable '""pbs_errno""' of type '""int""'");
+    }
+    pbs_errno = (int)(val);
+  }
+  return 0;
+fail:
+  return 1;
+}
+
+
+SWIGINTERN PyObject *Swig_var_pbs_errno_get(void) {
+  PyObject *pyobj = 0;
+  
+  pyobj = SWIG_From_int((int)(pbs_errno));
+  return pyobj;
+}
+
+
+SWIGINTERN int Swig_var_pbs_server_set(PyObject *_val) {
+  {
+    char *cptr = 0; size_t csize = 0; int alloc = SWIG_NEWOBJ;
+    int res = SWIG_AsCharPtrAndSize(_val, &cptr, &csize, &alloc);
+    if (!SWIG_IsOK(res)) {
+      SWIG_exception_fail(SWIG_ArgError(res), "in variable '""pbs_server""' of type '""char *""'");
+    }
+    if (pbs_server) free((char*)pbs_server);
+    if (alloc == SWIG_NEWOBJ) {
+      pbs_server = cptr;
+    } else {
+      pbs_server = csize ? (char *)(char *)memcpy((char *)malloc((csize)*sizeof(char)), cptr, sizeof(char)*(csize)) : 0;
+    }
+  }
+  return 0;
+fail:
+  return 1;
+}
+
+
+SWIGINTERN PyObject *Swig_var_pbs_server_get(void) {
+  PyObject *pyobj = 0;
+  
+  pyobj = SWIG_FromCharPtr(pbs_server);
+  return pyobj;
+}
+
+
+SWIGINTERN PyObject *_wrap_avail(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  char *arg2 = (char *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  char *result = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OO:avail",&obj0,&obj1)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "avail" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "avail" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  result = (char *)avail(arg1,arg2);
+  resultobj = SWIG_FromCharPtr((const char *)result);
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  return resultobj;
+fail:
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_asyrunjob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  char *arg2 = (char *) 0 ;
+  char *arg3 = (char *) 0 ;
+  char *arg4 = (char *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  int res3 ;
+  char *buf3 = 0 ;
+  int alloc3 = 0 ;
+  int res4 ;
+  char *buf4 = 0 ;
+  int alloc4 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  PyObject * obj2 = 0 ;
+  PyObject * obj3 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OOOO:pbs_asyrunjob",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_asyrunjob" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_asyrunjob" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
+  if (!SWIG_IsOK(res3)) {
+    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_asyrunjob" "', argument " "3"" of type '" "char *""'");
+  }
+  arg3 = (char *)(buf3);
+  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
+  if (!SWIG_IsOK(res4)) {
+    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_asyrunjob" "', argument " "4"" of type '" "char *""'");
+  }
+  arg4 = (char *)(buf4);
+  result = (int)pbs_asyrunjob(arg1,arg2,arg3,arg4);
+  resultobj = SWIG_From_int((int)(result));
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  return resultobj;
+fail:
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_alterjob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  char *arg2 = (char *) 0 ;
+  struct attrl *arg3 = (struct attrl *) 0 ;
+  char *arg4 = (char *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  int res4 ;
+  char *buf4 = 0 ;
+  int alloc4 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  PyObject * obj2 = 0 ;
+  PyObject * obj3 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OOOO:pbs_alterjob",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_alterjob" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_alterjob" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  {
+    PyObject      *py_obj;
+    struct attrl  *ptr, *prev;
+    char          s[255];
+    int           i=0, size=0;
+    
+    // printf("Python --> C\n");
+    
+    if (SARA_DEBUG) printf("Converteren python -> c (struct attrl *):\n");
+    
+    size = Get_List_Size(obj2);
+    if (SARA_DEBUG) printf("\tSize of attrl List: %d\n", size);
+    
+    if ( size == -1 ) {
+      PyErr_SetString(PyExc_TypeError, "not a list");
+      return NULL; 
+    }
+    
+    if (SARA_DEBUG) printf("\t<Contents>\n");
+    
+    arg3 = prev = NULL;
+    for ( i=0; i < size; i++ ) {
+      py_obj = PyList_GetItem(obj2, i);
+      if (SWIG_ConvertPtr(py_obj, (void **) &ptr, SWIGTYPE_p_attrl, 1)) {
+        sprintf(s,"list item %d has wrong type", i);
+        PyErr_SetString(PyExc_TypeError, s);
+        return NULL;
+        
+        // This will skipp the wrong entry
+        // continue;
+      }
+      
+      /* 
+           * Make first entry head of C linked list
+          */ 
+      if ( i == 0) {
+        arg3 = ptr;
+        ptr->next = prev;
+      }
+      else {
+        prev->next = ptr;
+        ptr->next = NULL;
+      }
+      if (SARA_DEBUG) printf("\t\t- %s\n", ptr->name);
+      
+      prev = ptr;
+      
+    } // end for
+    if (SARA_DEBUG) printf("\t</Contents>\n");
+  }
+  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
+  if (!SWIG_IsOK(res4)) {
+    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_alterjob" "', argument " "4"" of type '" "char *""'");
+  }
+  arg4 = (char *)(buf4);
+  result = (int)pbs_alterjob(arg1,arg2,arg3,arg4);
+  resultobj = SWIG_From_int((int)(result));
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  return resultobj;
+fail:
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_connect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  char *arg1 = (char *) 0 ;
+  int res1 ;
+  char *buf1 = 0 ;
+  int alloc1 = 0 ;
+  PyObject * obj0 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:pbs_connect",&obj0)) SWIG_fail;
+  res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pbs_connect" "', argument " "1"" of type '" "char *""'");
+  }
+  arg1 = (char *)(buf1);
+  result = (int)pbs_connect(arg1);
+  resultobj = SWIG_From_int((int)(result));
+  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
+  return resultobj;
+fail:
+  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_query_max_connections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)":pbs_query_max_connections")) SWIG_fail;
+  result = (int)pbs_query_max_connections();
+  resultobj = SWIG_From_int((int)(result));
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_default(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  char *result = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)":pbs_default")) SWIG_fail;
+  result = (char *)pbs_default();
+  resultobj = SWIG_FromCharPtr((const char *)result);
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_deljob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  char *arg2 = (char *) 0 ;
+  char *arg3 = (char *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  int res3 ;
+  char *buf3 = 0 ;
+  int alloc3 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  PyObject * obj2 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OOO:pbs_deljob",&obj0,&obj1,&obj2)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_deljob" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_deljob" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
+  if (!SWIG_IsOK(res3)) {
+    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_deljob" "', argument " "3"" of type '" "char *""'");
+  }
+  arg3 = (char *)(buf3);
+  result = (int)pbs_deljob(arg1,arg2,arg3);
+  resultobj = SWIG_From_int((int)(result));
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  return resultobj;
+fail:
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_disconnect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  PyObject * obj0 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:pbs_disconnect",&obj0)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_disconnect" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  result = (int)pbs_disconnect(arg1);
+  resultobj = SWIG_From_int((int)(result));
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_geterrmsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  PyObject * obj0 = 0 ;
+  char *result = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:pbs_geterrmsg",&obj0)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_geterrmsg" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  result = (char *)pbs_geterrmsg(arg1);
+  resultobj = SWIG_FromCharPtr((const char *)result);
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_holdjob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  char *arg2 = (char *) 0 ;
+  char *arg3 = (char *) 0 ;
+  char *arg4 = (char *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  int res3 ;
+  char *buf3 = 0 ;
+  int alloc3 = 0 ;
+  int res4 ;
+  char *buf4 = 0 ;
+  int alloc4 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  PyObject * obj2 = 0 ;
+  PyObject * obj3 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OOOO:pbs_holdjob",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_holdjob" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_holdjob" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
+  if (!SWIG_IsOK(res3)) {
+    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_holdjob" "', argument " "3"" of type '" "char *""'");
+  }
+  arg3 = (char *)(buf3);
+  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
+  if (!SWIG_IsOK(res4)) {
+    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_holdjob" "', argument " "4"" of type '" "char *""'");
+  }
+  arg4 = (char *)(buf4);
+  result = (int)pbs_holdjob(arg1,arg2,arg3,arg4);
+  resultobj = SWIG_From_int((int)(result));
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  return resultobj;
+fail:
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_locjob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  char *arg2 = (char *) 0 ;
+  char *arg3 = (char *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  int res3 ;
+  char *buf3 = 0 ;
+  int alloc3 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  PyObject * obj2 = 0 ;
+  char *result = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OOO:pbs_locjob",&obj0,&obj1,&obj2)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_locjob" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_locjob" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
+  if (!SWIG_IsOK(res3)) {
+    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_locjob" "', argument " "3"" of type '" "char *""'");
+  }
+  arg3 = (char *)(buf3);
+  result = (char *)pbs_locjob(arg1,arg2,arg3);
+  resultobj = SWIG_FromCharPtr((const char *)result);
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  return resultobj;
+fail:
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_manager(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  int arg2 ;
+  int arg3 ;
+  char *arg4 = (char *) 0 ;
+  struct attropl *arg5 = (struct attropl *) 0 ;
+  char *arg6 = (char *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int val2 ;
+  int ecode2 = 0 ;
+  int val3 ;
+  int ecode3 = 0 ;
+  int res4 ;
+  char *buf4 = 0 ;
+  int alloc4 = 0 ;
+  int res6 ;
+  char *buf6 = 0 ;
+  int alloc6 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  PyObject * obj2 = 0 ;
+  PyObject * obj3 = 0 ;
+  PyObject * obj4 = 0 ;
+  PyObject * obj5 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pbs_manager",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_manager" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  ecode2 = SWIG_AsVal_int(obj1, &val2);
+  if (!SWIG_IsOK(ecode2)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pbs_manager" "', argument " "2"" of type '" "int""'");
+  } 
+  arg2 = (int)(val2);
+  ecode3 = SWIG_AsVal_int(obj2, &val3);
+  if (!SWIG_IsOK(ecode3)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pbs_manager" "', argument " "3"" of type '" "int""'");
+  } 
+  arg3 = (int)(val3);
+  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
+  if (!SWIG_IsOK(res4)) {
+    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_manager" "', argument " "4"" of type '" "char *""'");
+  }
+  arg4 = (char *)(buf4);
+  {
+    PyObject          *py_obj;
+    struct attropl    *ptr, *prev;
+    char              s[255];
+    int               i=0, size=0;
+    
+    // printf("Python --> C\n");
+    
+    if (SARA_DEBUG) printf("Converteren python -> c (struct attropl *):\n");
+    
+    size = Get_List_Size(obj4);
+    
+    if (SARA_DEBUG) printf("\tSize attropl List: %d\n", size);
+    
+    if ( size == -1 ) {
+      PyErr_SetString(PyExc_TypeError, "not a list");
+      return NULL; 
+    }
+    //printf("Size = %d\n", size);
+    
+    if (SARA_DEBUG) printf("\t<Contents>\n");
+    
+    arg5 = prev = NULL;
+    for ( i=0; i < size; i++ ) {
+      py_obj = PyList_GetItem(obj4, i);
+      if (SWIG_ConvertPtr(py_obj, (void **) &ptr, SWIGTYPE_p_attropl, 1)) {
+        sprintf(s,"list item %d has wrong type", i);
+        PyErr_SetString(PyExc_TypeError, s);
+        return NULL;
+        
+        // This will skipp the wrong entry
+        // continue;
+      }
+      
+      /* 
+           * Make first entry head of C linked list
+          */ 
+      if ( i == 0) {
+        arg5 = ptr;
+        ptr->next = prev;
+      }
+      else {
+        prev->next = ptr;
+        ptr->next = NULL;
+      }
+      prev = ptr;
+      
+    } // end for
+    if (SARA_DEBUG) printf("\t</Contents>\n");
+  }
+  res6 = SWIG_AsCharPtrAndSize(obj5, &buf6, NULL, &alloc6);
+  if (!SWIG_IsOK(res6)) {
+    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "pbs_manager" "', argument " "6"" of type '" "char *""'");
+  }
+  arg6 = (char *)(buf6);
+  result = (int)pbs_manager(arg1,arg2,arg3,arg4,arg5,arg6);
+  resultobj = SWIG_From_int((int)(result));
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  if (alloc6 == SWIG_NEWOBJ) free((char*)buf6);
+  return resultobj;
+fail:
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  if (alloc6 == SWIG_NEWOBJ) free((char*)buf6);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_movejob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  char *arg2 = (char *) 0 ;
+  char *arg3 = (char *) 0 ;
+  char *arg4 = (char *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  int res3 ;
+  char *buf3 = 0 ;
+  int alloc3 = 0 ;
+  int res4 ;
+  char *buf4 = 0 ;
+  int alloc4 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  PyObject * obj2 = 0 ;
+  PyObject * obj3 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OOOO:pbs_movejob",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_movejob" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_movejob" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
+  if (!SWIG_IsOK(res3)) {
+    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_movejob" "', argument " "3"" of type '" "char *""'");
+  }
+  arg3 = (char *)(buf3);
+  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
+  if (!SWIG_IsOK(res4)) {
+    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_movejob" "', argument " "4"" of type '" "char *""'");
+  }
+  arg4 = (char *)(buf4);
+  result = (int)pbs_movejob(arg1,arg2,arg3,arg4);
+  resultobj = SWIG_From_int((int)(result));
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  return resultobj;
+fail:
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_msgjob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  char *arg2 = (char *) 0 ;
+  int arg3 ;
+  char *arg4 = (char *) 0 ;
+  char *arg5 = (char *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  int val3 ;
+  int ecode3 = 0 ;
+  int res4 ;
+  char *buf4 = 0 ;
+  int alloc4 = 0 ;
+  int res5 ;
+  char *buf5 = 0 ;
+  int alloc5 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  PyObject * obj2 = 0 ;
+  PyObject * obj3 = 0 ;
+  PyObject * obj4 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OOOOO:pbs_msgjob",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_msgjob" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_msgjob" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  ecode3 = SWIG_AsVal_int(obj2, &val3);
+  if (!SWIG_IsOK(ecode3)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pbs_msgjob" "', argument " "3"" of type '" "int""'");
+  } 
+  arg3 = (int)(val3);
+  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
+  if (!SWIG_IsOK(res4)) {
+    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_msgjob" "', argument " "4"" of type '" "char *""'");
+  }
+  arg4 = (char *)(buf4);
+  res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5);
+  if (!SWIG_IsOK(res5)) {
+    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pbs_msgjob" "', argument " "5"" of type '" "char *""'");
+  }
+  arg5 = (char *)(buf5);
+  result = (int)pbs_msgjob(arg1,arg2,arg3,arg4,arg5);
+  resultobj = SWIG_From_int((int)(result));
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
+  return resultobj;
+fail:
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_orderjob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  char *arg2 = (char *) 0 ;
+  char *arg3 = (char *) 0 ;
+  char *arg4 = (char *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  int res3 ;
+  char *buf3 = 0 ;
+  int alloc3 = 0 ;
+  int res4 ;
+  char *buf4 = 0 ;
+  int alloc4 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  PyObject * obj2 = 0 ;
+  PyObject * obj3 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OOOO:pbs_orderjob",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_orderjob" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_orderjob" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
+  if (!SWIG_IsOK(res3)) {
+    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_orderjob" "', argument " "3"" of type '" "char *""'");
+  }
+  arg3 = (char *)(buf3);
+  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
+  if (!SWIG_IsOK(res4)) {
+    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_orderjob" "', argument " "4"" of type '" "char *""'");
+  }
+  arg4 = (char *)(buf4);
+  result = (int)pbs_orderjob(arg1,arg2,arg3,arg4);
+  resultobj = SWIG_From_int((int)(result));
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  return resultobj;
+fail:
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_rescquery(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  char **arg2 = (char **) 0 ;
+  int arg3 ;
+  int *arg4 = (int *) 0 ;
+  int *arg5 = (int *) 0 ;
+  int *arg6 = (int *) 0 ;
+  int *arg7 = (int *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int val3 ;
+  int ecode3 = 0 ;
+  void *argp4 = 0 ;
+  int res4 = 0 ;
+  void *argp5 = 0 ;
+  int res5 = 0 ;
+  void *argp6 = 0 ;
+  int res6 = 0 ;
+  void *argp7 = 0 ;
+  int res7 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  PyObject * obj2 = 0 ;
+  PyObject * obj3 = 0 ;
+  PyObject * obj4 = 0 ;
+  PyObject * obj5 = 0 ;
+  PyObject * obj6 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:pbs_rescquery",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_rescquery" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  {
+    int       i=0, size=0;
+    PyObject  *py_obj;
+    
+    if (SARA_DEBUG) printf("Convert python -> c (char **):\n");
+    
+    size = Get_List_Size(obj1);
+    
+    if (SARA_DEBUG) printf("\tSize of List: %d\n", size);
+    
+    if ( size == -1 ) {
+      PyErr_SetString(PyExc_TypeError, "not a list");
+      return NULL; 
+    }
+    // printf("Size = %d\n", size);
+    
+    if (SARA_DEBUG) printf("\t<Contents>\n");
+    
+    arg2 = (char **) malloc( (size+1) * sizeof(char *));
+    for (i=0; i < size; i++) {
+      py_obj = PyList_GetItem(obj1, i);
+      if (PyString_Check(py_obj)) {
+        arg2[i] = PyString_AsString(py_obj);
+        if (SARA_DEBUG) printf("%s", arg2[i]);
+      }
+      else {
+        PyErr_SetString(PyExc_TypeError, "not a list of strings");
+        free(arg2);
+        return NULL; 
+      }
+    } // end for
+    arg2[i] = 0;
+    if (SARA_DEBUG) printf("\t</Contents>\n");
+  }
+  ecode3 = SWIG_AsVal_int(obj2, &val3);
+  if (!SWIG_IsOK(ecode3)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pbs_rescquery" "', argument " "3"" of type '" "int""'");
+  } 
+  arg3 = (int)(val3);
+  res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_int, 0 |  0 );
+  if (!SWIG_IsOK(res4)) {
+    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_rescquery" "', argument " "4"" of type '" "int *""'"); 
+  }
+  arg4 = (int *)(argp4);
+  res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 |  0 );
+  if (!SWIG_IsOK(res5)) {
+    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pbs_rescquery" "', argument " "5"" of type '" "int *""'"); 
+  }
+  arg5 = (int *)(argp5);
+  res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_int, 0 |  0 );
+  if (!SWIG_IsOK(res6)) {
+    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "pbs_rescquery" "', argument " "6"" of type '" "int *""'"); 
+  }
+  arg6 = (int *)(argp6);
+  res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_int, 0 |  0 );
+  if (!SWIG_IsOK(res7)) {
+    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "pbs_rescquery" "', argument " "7"" of type '" "int *""'"); 
+  }
+  arg7 = (int *)(argp7);
+  result = (int)pbs_rescquery(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
+  resultobj = SWIG_From_int((int)(result));
+  {
+    free( (char *) arg2);
+  }
+  return resultobj;
+fail:
+  {
+    free( (char *) arg2);
+  }
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_rescreserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  char **arg2 = (char **) 0 ;
+  int arg3 ;
+  resource_t *arg4 = (resource_t *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int val3 ;
+  int ecode3 = 0 ;
+  void *argp4 = 0 ;
+  int res4 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  PyObject * obj2 = 0 ;
+  PyObject * obj3 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OOOO:pbs_rescreserve",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_rescreserve" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  {
+    int       i=0, size=0;
+    PyObject  *py_obj;
+    
+    if (SARA_DEBUG) printf("Convert python -> c (char **):\n");
+    
+    size = Get_List_Size(obj1);
+    
+    if (SARA_DEBUG) printf("\tSize of List: %d\n", size);
+    
+    if ( size == -1 ) {
+      PyErr_SetString(PyExc_TypeError, "not a list");
+      return NULL; 
+    }
+    // printf("Size = %d\n", size);
+    
+    if (SARA_DEBUG) printf("\t<Contents>\n");
+    
+    arg2 = (char **) malloc( (size+1) * sizeof(char *));
+    for (i=0; i < size; i++) {
+      py_obj = PyList_GetItem(obj1, i);
+      if (PyString_Check(py_obj)) {
+        arg2[i] = PyString_AsString(py_obj);
+        if (SARA_DEBUG) printf("%s", arg2[i]);
+      }
+      else {
+        PyErr_SetString(PyExc_TypeError, "not a list of strings");
+        free(arg2);
+        return NULL; 
+      }
+    } // end for
+    arg2[i] = 0;
+    if (SARA_DEBUG) printf("\t</Contents>\n");
+  }
+  ecode3 = SWIG_AsVal_int(obj2, &val3);
+  if (!SWIG_IsOK(ecode3)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pbs_rescreserve" "', argument " "3"" of type '" "int""'");
+  } 
+  arg3 = (int)(val3);
+  res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_int, 0 |  0 );
+  if (!SWIG_IsOK(res4)) {
+    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_rescreserve" "', argument " "4"" of type '" "resource_t *""'"); 
+  }
+  arg4 = (resource_t *)(argp4);
+  result = (int)pbs_rescreserve(arg1,arg2,arg3,arg4);
+  resultobj = SWIG_From_int((int)(result));
+  {
+    free( (char *) arg2);
+  }
+  return resultobj;
+fail:
+  {
+    free( (char *) arg2);
+  }
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_rescrelease(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  resource_t arg2 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int val2 ;
+  int ecode2 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OO:pbs_rescrelease",&obj0,&obj1)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_rescrelease" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  ecode2 = SWIG_AsVal_int(obj1, &val2);
+  if (!SWIG_IsOK(ecode2)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pbs_rescrelease" "', argument " "2"" of type '" "resource_t""'");
+  } 
+  arg2 = (resource_t)(val2);
+  result = (int)pbs_rescrelease(arg1,arg2);
+  resultobj = SWIG_From_int((int)(result));
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_rerunjob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  char *arg2 = (char *) 0 ;
+  char *arg3 = (char *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  int res3 ;
+  char *buf3 = 0 ;
+  int alloc3 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  PyObject * obj2 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OOO:pbs_rerunjob",&obj0,&obj1,&obj2)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_rerunjob" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_rerunjob" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
+  if (!SWIG_IsOK(res3)) {
+    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_rerunjob" "', argument " "3"" of type '" "char *""'");
+  }
+  arg3 = (char *)(buf3);
+  result = (int)pbs_rerunjob(arg1,arg2,arg3);
+  resultobj = SWIG_From_int((int)(result));
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  return resultobj;
+fail:
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_rlsjob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  char *arg2 = (char *) 0 ;
+  char *arg3 = (char *) 0 ;
+  char *arg4 = (char *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  int res3 ;
+  char *buf3 = 0 ;
+  int alloc3 = 0 ;
+  int res4 ;
+  char *buf4 = 0 ;
+  int alloc4 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  PyObject * obj2 = 0 ;
+  PyObject * obj3 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OOOO:pbs_rlsjob",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_rlsjob" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_rlsjob" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
+  if (!SWIG_IsOK(res3)) {
+    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_rlsjob" "', argument " "3"" of type '" "char *""'");
+  }
+  arg3 = (char *)(buf3);
+  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
+  if (!SWIG_IsOK(res4)) {
+    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_rlsjob" "', argument " "4"" of type '" "char *""'");
+  }
+  arg4 = (char *)(buf4);
+  result = (int)pbs_rlsjob(arg1,arg2,arg3,arg4);
+  resultobj = SWIG_From_int((int)(result));
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  return resultobj;
+fail:
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_runjob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  char *arg2 = (char *) 0 ;
+  char *arg3 = (char *) 0 ;
+  char *arg4 = (char *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  int res3 ;
+  char *buf3 = 0 ;
+  int alloc3 = 0 ;
+  int res4 ;
+  char *buf4 = 0 ;
+  int alloc4 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  PyObject * obj2 = 0 ;
+  PyObject * obj3 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OOOO:pbs_runjob",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_runjob" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_runjob" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
+  if (!SWIG_IsOK(res3)) {
+    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_runjob" "', argument " "3"" of type '" "char *""'");
+  }
+  arg3 = (char *)(buf3);
+  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
+  if (!SWIG_IsOK(res4)) {
+    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_runjob" "', argument " "4"" of type '" "char *""'");
+  }
+  arg4 = (char *)(buf4);
+  result = (int)pbs_runjob(arg1,arg2,arg3,arg4);
+  resultobj = SWIG_From_int((int)(result));
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  return resultobj;
+fail:
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_selectjob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  struct attropl *arg2 = (struct attropl *) 0 ;
+  char *arg3 = (char *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int res3 ;
+  char *buf3 = 0 ;
+  int alloc3 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  PyObject * obj2 = 0 ;
+  char **result = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OOO:pbs_selectjob",&obj0,&obj1,&obj2)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_selectjob" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  {
+    PyObject          *py_obj;
+    struct attropl    *ptr, *prev;
+    char              s[255];
+    int               i=0, size=0;
+    
+    // printf("Python --> C\n");
+    
+    if (SARA_DEBUG) printf("Converteren python -> c (struct attropl *):\n");
+    
+    size = Get_List_Size(obj1);
+    
+    if (SARA_DEBUG) printf("\tSize attropl List: %d\n", size);
+    
+    if ( size == -1 ) {
+      PyErr_SetString(PyExc_TypeError, "not a list");
+      return NULL; 
+    }
+    //printf("Size = %d\n", size);
+    
+    if (SARA_DEBUG) printf("\t<Contents>\n");
+    
+    arg2 = prev = NULL;
+    for ( i=0; i < size; i++ ) {
+      py_obj = PyList_GetItem(obj1, i);
+      if (SWIG_ConvertPtr(py_obj, (void **) &ptr, SWIGTYPE_p_attropl, 1)) {
+        sprintf(s,"list item %d has wrong type", i);
+        PyErr_SetString(PyExc_TypeError, s);
+        return NULL;
+        
+        // This will skipp the wrong entry
+        // continue;
+      }
+      
+      /* 
+           * Make first entry head of C linked list
+          */ 
+      if ( i == 0) {
+        arg2 = ptr;
+        ptr->next = prev;
+      }
+      else {
+        prev->next = ptr;
+        ptr->next = NULL;
+      }
+      prev = ptr;
+      
+    } // end for
+    if (SARA_DEBUG) printf("\t</Contents>\n");
+  }
+  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
+  if (!SWIG_IsOK(res3)) {
+    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_selectjob" "', argument " "3"" of type '" "char *""'");
+  }
+  arg3 = (char *)(buf3);
+  result = (char **)pbs_selectjob(arg1,arg2,arg3);
+  {
+    int len=0, i;
+    
+    if (SARA_DEBUG) 
+    printf("Converteren char ** -> python list\n");
+    
+    
+    if (result == NULL) 
+    resultobj = PyList_New(0);
+    else {
+      while (result[len]) 
+      len++;
+    }
+    
+    if (SARA_DEBUG) 
+    printf("\tSize of List: %d\n", len);
+    
+    resultobj = PyList_New(len);
+    if (SARA_DEBUG) 
+    printf("\t<Contents>\n");
+    for (i=0; i < len; i++ ) {
+      PyList_SetItem(resultobj, i , PyString_FromString(result[i])); 
+      if (SARA_DEBUG) 
+      printf("\t\t- %s\n", result[i]);
+    }
+    if (SARA_DEBUG) 
+    printf("\t</Contents>\n");
+  }
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  return resultobj;
+fail:
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_sigjob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  char *arg2 = (char *) 0 ;
+  char *arg3 = (char *) 0 ;
+  char *arg4 = (char *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  int res3 ;
+  char *buf3 = 0 ;
+  int alloc3 = 0 ;
+  int res4 ;
+  char *buf4 = 0 ;
+  int alloc4 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  PyObject * obj2 = 0 ;
+  PyObject * obj3 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OOOO:pbs_sigjob",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_sigjob" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_sigjob" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
+  if (!SWIG_IsOK(res3)) {
+    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_sigjob" "', argument " "3"" of type '" "char *""'");
+  }
+  arg3 = (char *)(buf3);
+  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
+  if (!SWIG_IsOK(res4)) {
+    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_sigjob" "', argument " "4"" of type '" "char *""'");
+  }
+  arg4 = (char *)(buf4);
+  result = (int)pbs_sigjob(arg1,arg2,arg3,arg4);
+  resultobj = SWIG_From_int((int)(result));
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  return resultobj;
+fail:
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_statfree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  struct batch_status *arg1 = (struct batch_status *) 0 ;
+  PyObject * obj0 = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:pbs_statfree",&obj0)) SWIG_fail;
+  {
+    PyObject              *py_obj;
+    struct batch_status   *ptr, *prev;
+    char                  s[255];
+    int                   i=0, size=0;
+    
+    // printf("Python --> C\n");
+    
+    if (SARA_DEBUG) printf("Converteren python -> c (struct batch_status *):\n");
+    
+    size = Get_List_Size(obj0);
+    if (SARA_DEBUG) printf("\tSize of batch_status list: %d\n", size);
+    
+    if ( size == -1 ) {
+      PyErr_SetString(PyExc_TypeError, "not a list");
+      return NULL; 
+    }
+    // printf("Size = %d\n", size);
+    
+    if (SARA_DEBUG) printf("\t<Contents>\n");
+    
+    arg1 = prev = NULL;
+    for ( i=0; i < size; i++ ) {
+      py_obj = PyList_GetItem(obj0, i);
+      if (SWIG_ConvertPtr(py_obj, (void **) &ptr, SWIGTYPE_p_batch_status, 1)) {
+        sprintf(s,"list item %d has wrong type", i);
+        PyErr_SetString(PyExc_TypeError, s);
+        return NULL;
+        
+        // This will skipp the wrong entry
+        // continue;
+      }
+      
+      /* 
+           * Make first entry head of C linked list
+          */ 
+      if ( i == 0) {
+        arg1 = ptr;
+        ptr->next = prev;
+      }
+      else {
+        prev->next = ptr;
+        ptr->next = NULL;
+      }
+      
+      if (SARA_DEBUG) printf("\t\t- %s\n", ptr->name);
+      prev = ptr;
+      
+    } // end for
+    
+    if (SARA_DEBUG) printf("\t</Contents>\n");
+  }
+  pbs_statfree(arg1);
+  resultobj = SWIG_Py_Void();
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_statjob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  char *arg2 = (char *) 0 ;
+  struct attrl *arg3 = (struct attrl *) 0 ;
+  char *arg4 = (char *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  int res4 ;
+  char *buf4 = 0 ;
+  int alloc4 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  PyObject * obj2 = 0 ;
+  PyObject * obj3 = 0 ;
+  struct batch_status *result = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OOOO:pbs_statjob",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_statjob" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_statjob" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  {
+    PyObject      *py_obj;
+    struct attrl  *ptr, *prev;
+    char          s[255];
+    int           i=0, size=0;
+    
+    // printf("Python --> C\n");
+    
+    if (SARA_DEBUG) printf("Converteren python -> c (struct attrl *):\n");
+    
+    size = Get_List_Size(obj2);
+    if (SARA_DEBUG) printf("\tSize of attrl List: %d\n", size);
+    
+    if ( size == -1 ) {
+      PyErr_SetString(PyExc_TypeError, "not a list");
+      return NULL; 
+    }
+    
+    if (SARA_DEBUG) printf("\t<Contents>\n");
+    
+    arg3 = prev = NULL;
+    for ( i=0; i < size; i++ ) {
+      py_obj = PyList_GetItem(obj2, i);
+      if (SWIG_ConvertPtr(py_obj, (void **) &ptr, SWIGTYPE_p_attrl, 1)) {
+        sprintf(s,"list item %d has wrong type", i);
+        PyErr_SetString(PyExc_TypeError, s);
+        return NULL;
+        
+        // This will skipp the wrong entry
+        // continue;
+      }
+      
+      /* 
+           * Make first entry head of C linked list
+          */ 
+      if ( i == 0) {
+        arg3 = ptr;
+        ptr->next = prev;
+      }
+      else {
+        prev->next = ptr;
+        ptr->next = NULL;
+      }
+      if (SARA_DEBUG) printf("\t\t- %s\n", ptr->name);
+      
+      prev = ptr;
+      
+    } // end for
+    if (SARA_DEBUG) printf("\t</Contents>\n");
+  }
+  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
+  if (!SWIG_IsOK(res4)) {
+    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_statjob" "', argument " "4"" of type '" "char *""'");
+  }
+  arg4 = (char *)(buf4);
+  result = (struct batch_status *)pbs_statjob(arg1,arg2,arg3,arg4);
+  {
+    PyObject              *obj_batch;
+    struct batch_status   *ptr;
+    int                   i=0, len=0;
+    
+    // printf("Ja we are in bussniss\n");
+    if (SARA_DEBUG) printf("Converteren c (struct batch_status *) -> python:\n");
+    
+    // Deterime length of list
+    //
+    ptr = result;
+    while (ptr != NULL) {
+      len++;
+      ptr = ptr->next;
+    }
+    resultobj = PyList_New(len);
+    
+    if (SARA_DEBUG) printf("\tSize of List: %d\n", len);
+    
+    // Make a list of batch_status pointers
+    //
+    if (SARA_DEBUG) printf("\t<Contents>\n");
+    ptr = result;
+    for (i=0; i < len; i++) {
+      obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_batch_status,0); 
+      PyList_SetItem(resultobj, i, obj_batch);
+      if (SARA_DEBUG)  {
+        printf("\t\t- %s\n", ptr->name);
+      }
+      ptr = ptr->next;
+    }
+    
+    if (SARA_DEBUG) printf("\t</Contents>\n");
+  }
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  return resultobj;
+fail:
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_selstat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  struct attropl *arg2 = (struct attropl *) 0 ;
+  char *arg3 = (char *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int res3 ;
+  char *buf3 = 0 ;
+  int alloc3 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  PyObject * obj2 = 0 ;
+  struct batch_status *result = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OOO:pbs_selstat",&obj0,&obj1,&obj2)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_selstat" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  {
+    PyObject          *py_obj;
+    struct attropl    *ptr, *prev;
+    char              s[255];
+    int               i=0, size=0;
+    
+    // printf("Python --> C\n");
+    
+    if (SARA_DEBUG) printf("Converteren python -> c (struct attropl *):\n");
+    
+    size = Get_List_Size(obj1);
+    
+    if (SARA_DEBUG) printf("\tSize attropl List: %d\n", size);
+    
+    if ( size == -1 ) {
+      PyErr_SetString(PyExc_TypeError, "not a list");
+      return NULL; 
+    }
+    //printf("Size = %d\n", size);
+    
+    if (SARA_DEBUG) printf("\t<Contents>\n");
+    
+    arg2 = prev = NULL;
+    for ( i=0; i < size; i++ ) {
+      py_obj = PyList_GetItem(obj1, i);
+      if (SWIG_ConvertPtr(py_obj, (void **) &ptr, SWIGTYPE_p_attropl, 1)) {
+        sprintf(s,"list item %d has wrong type", i);
+        PyErr_SetString(PyExc_TypeError, s);
+        return NULL;
+        
+        // This will skipp the wrong entry
+        // continue;
+      }
+      
+      /* 
+           * Make first entry head of C linked list
+          */ 
+      if ( i == 0) {
+        arg2 = ptr;
+        ptr->next = prev;
+      }
+      else {
+        prev->next = ptr;
+        ptr->next = NULL;
+      }
+      prev = ptr;
+      
+    } // end for
+    if (SARA_DEBUG) printf("\t</Contents>\n");
+  }
+  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
+  if (!SWIG_IsOK(res3)) {
+    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_selstat" "', argument " "3"" of type '" "char *""'");
+  }
+  arg3 = (char *)(buf3);
+  result = (struct batch_status *)pbs_selstat(arg1,arg2,arg3);
+  {
+    PyObject              *obj_batch;
+    struct batch_status   *ptr;
+    int                   i=0, len=0;
+    
+    // printf("Ja we are in bussniss\n");
+    if (SARA_DEBUG) printf("Converteren c (struct batch_status *) -> python:\n");
+    
+    // Deterime length of list
+    //
+    ptr = result;
+    while (ptr != NULL) {
+      len++;
+      ptr = ptr->next;
+    }
+    resultobj = PyList_New(len);
+    
+    if (SARA_DEBUG) printf("\tSize of List: %d\n", len);
+    
+    // Make a list of batch_status pointers
+    //
+    if (SARA_DEBUG) printf("\t<Contents>\n");
+    ptr = result;
+    for (i=0; i < len; i++) {
+      obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_batch_status,0); 
+      PyList_SetItem(resultobj, i, obj_batch);
+      if (SARA_DEBUG)  {
+        printf("\t\t- %s\n", ptr->name);
+      }
+      ptr = ptr->next;
+    }
+    
+    if (SARA_DEBUG) printf("\t</Contents>\n");
+  }
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  return resultobj;
+fail:
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_statque(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  char *arg2 = (char *) 0 ;
+  struct attrl *arg3 = (struct attrl *) 0 ;
+  char *arg4 = (char *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  int res4 ;
+  char *buf4 = 0 ;
+  int alloc4 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  PyObject * obj2 = 0 ;
+  PyObject * obj3 = 0 ;
+  struct batch_status *result = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OOOO:pbs_statque",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_statque" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_statque" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  {
+    PyObject      *py_obj;
+    struct attrl  *ptr, *prev;
+    char          s[255];
+    int           i=0, size=0;
+    
+    // printf("Python --> C\n");
+    
+    if (SARA_DEBUG) printf("Converteren python -> c (struct attrl *):\n");
+    
+    size = Get_List_Size(obj2);
+    if (SARA_DEBUG) printf("\tSize of attrl List: %d\n", size);
+    
+    if ( size == -1 ) {
+      PyErr_SetString(PyExc_TypeError, "not a list");
+      return NULL; 
+    }
+    
+    if (SARA_DEBUG) printf("\t<Contents>\n");
+    
+    arg3 = prev = NULL;
+    for ( i=0; i < size; i++ ) {
+      py_obj = PyList_GetItem(obj2, i);
+      if (SWIG_ConvertPtr(py_obj, (void **) &ptr, SWIGTYPE_p_attrl, 1)) {
+        sprintf(s,"list item %d has wrong type", i);
+        PyErr_SetString(PyExc_TypeError, s);
+        return NULL;
+        
+        // This will skipp the wrong entry
+        // continue;
+      }
+      
+      /* 
+           * Make first entry head of C linked list
+          */ 
+      if ( i == 0) {
+        arg3 = ptr;
+        ptr->next = prev;
+      }
+      else {
+        prev->next = ptr;
+        ptr->next = NULL;
+      }
+      if (SARA_DEBUG) printf("\t\t- %s\n", ptr->name);
+      
+      prev = ptr;
+      
+    } // end for
+    if (SARA_DEBUG) printf("\t</Contents>\n");
+  }
+  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
+  if (!SWIG_IsOK(res4)) {
+    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_statque" "', argument " "4"" of type '" "char *""'");
+  }
+  arg4 = (char *)(buf4);
+  result = (struct batch_status *)pbs_statque(arg1,arg2,arg3,arg4);
+  {
+    PyObject              *obj_batch;
+    struct batch_status   *ptr;
+    int                   i=0, len=0;
+    
+    // printf("Ja we are in bussniss\n");
+    if (SARA_DEBUG) printf("Converteren c (struct batch_status *) -> python:\n");
+    
+    // Deterime length of list
+    //
+    ptr = result;
+    while (ptr != NULL) {
+      len++;
+      ptr = ptr->next;
+    }
+    resultobj = PyList_New(len);
+    
+    if (SARA_DEBUG) printf("\tSize of List: %d\n", len);
+    
+    // Make a list of batch_status pointers
+    //
+    if (SARA_DEBUG) printf("\t<Contents>\n");
+    ptr = result;
+    for (i=0; i < len; i++) {
+      obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_batch_status,0); 
+      PyList_SetItem(resultobj, i, obj_batch);
+      if (SARA_DEBUG)  {
+        printf("\t\t- %s\n", ptr->name);
+      }
+      ptr = ptr->next;
+    }
+    
+    if (SARA_DEBUG) printf("\t</Contents>\n");
+  }
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  return resultobj;
+fail:
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_statserver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  struct attrl *arg2 = (struct attrl *) 0 ;
+  char *arg3 = (char *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int res3 ;
+  char *buf3 = 0 ;
+  int alloc3 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  PyObject * obj2 = 0 ;
+  struct batch_status *result = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OOO:pbs_statserver",&obj0,&obj1,&obj2)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_statserver" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  {
+    PyObject      *py_obj;
+    struct attrl  *ptr, *prev;
+    char          s[255];
+    int           i=0, size=0;
+    
+    // printf("Python --> C\n");
+    
+    if (SARA_DEBUG) printf("Converteren python -> c (struct attrl *):\n");
+    
+    size = Get_List_Size(obj1);
+    if (SARA_DEBUG) printf("\tSize of attrl List: %d\n", size);
+    
+    if ( size == -1 ) {
+      PyErr_SetString(PyExc_TypeError, "not a list");
+      return NULL; 
+    }
+    
+    if (SARA_DEBUG) printf("\t<Contents>\n");
+    
+    arg2 = prev = NULL;
+    for ( i=0; i < size; i++ ) {
+      py_obj = PyList_GetItem(obj1, i);
+      if (SWIG_ConvertPtr(py_obj, (void **) &ptr, SWIGTYPE_p_attrl, 1)) {
+        sprintf(s,"list item %d has wrong type", i);
+        PyErr_SetString(PyExc_TypeError, s);
+        return NULL;
+        
+        // This will skipp the wrong entry
+        // continue;
+      }
+      
+      /* 
+           * Make first entry head of C linked list
+          */ 
+      if ( i == 0) {
+        arg2 = ptr;
+        ptr->next = prev;
+      }
+      else {
+        prev->next = ptr;
+        ptr->next = NULL;
+      }
+      if (SARA_DEBUG) printf("\t\t- %s\n", ptr->name);
+      
+      prev = ptr;
+      
+    } // end for
+    if (SARA_DEBUG) printf("\t</Contents>\n");
+  }
+  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
+  if (!SWIG_IsOK(res3)) {
+    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_statserver" "', argument " "3"" of type '" "char *""'");
+  }
+  arg3 = (char *)(buf3);
+  result = (struct batch_status *)pbs_statserver(arg1,arg2,arg3);
+  {
+    PyObject              *obj_batch;
+    struct batch_status   *ptr;
+    int                   i=0, len=0;
+    
+    // printf("Ja we are in bussniss\n");
+    if (SARA_DEBUG) printf("Converteren c (struct batch_status *) -> python:\n");
+    
+    // Deterime length of list
+    //
+    ptr = result;
+    while (ptr != NULL) {
+      len++;
+      ptr = ptr->next;
+    }
+    resultobj = PyList_New(len);
+    
+    if (SARA_DEBUG) printf("\tSize of List: %d\n", len);
+    
+    // Make a list of batch_status pointers
+    //
+    if (SARA_DEBUG) printf("\t<Contents>\n");
+    ptr = result;
+    for (i=0; i < len; i++) {
+      obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_batch_status,0); 
+      PyList_SetItem(resultobj, i, obj_batch);
+      if (SARA_DEBUG)  {
+        printf("\t\t- %s\n", ptr->name);
+      }
+      ptr = ptr->next;
+    }
+    
+    if (SARA_DEBUG) printf("\t</Contents>\n");
+  }
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  return resultobj;
+fail:
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_statnode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  char *arg2 = (char *) 0 ;
+  struct attrl *arg3 = (struct attrl *) 0 ;
+  char *arg4 = (char *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  int res4 ;
+  char *buf4 = 0 ;
+  int alloc4 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  PyObject * obj2 = 0 ;
+  PyObject * obj3 = 0 ;
+  struct batch_status *result = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OOOO:pbs_statnode",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_statnode" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_statnode" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  {
+    PyObject      *py_obj;
+    struct attrl  *ptr, *prev;
+    char          s[255];
+    int           i=0, size=0;
+    
+    // printf("Python --> C\n");
+    
+    if (SARA_DEBUG) printf("Converteren python -> c (struct attrl *):\n");
+    
+    size = Get_List_Size(obj2);
+    if (SARA_DEBUG) printf("\tSize of attrl List: %d\n", size);
+    
+    if ( size == -1 ) {
+      PyErr_SetString(PyExc_TypeError, "not a list");
+      return NULL; 
+    }
+    
+    if (SARA_DEBUG) printf("\t<Contents>\n");
+    
+    arg3 = prev = NULL;
+    for ( i=0; i < size; i++ ) {
+      py_obj = PyList_GetItem(obj2, i);
+      if (SWIG_ConvertPtr(py_obj, (void **) &ptr, SWIGTYPE_p_attrl, 1)) {
+        sprintf(s,"list item %d has wrong type", i);
+        PyErr_SetString(PyExc_TypeError, s);
+        return NULL;
+        
+        // This will skipp the wrong entry
+        // continue;
+      }
+      
+      /* 
+           * Make first entry head of C linked list
+          */ 
+      if ( i == 0) {
+        arg3 = ptr;
+        ptr->next = prev;
+      }
+      else {
+        prev->next = ptr;
+        ptr->next = NULL;
+      }
+      if (SARA_DEBUG) printf("\t\t- %s\n", ptr->name);
+      
+      prev = ptr;
+      
+    } // end for
+    if (SARA_DEBUG) printf("\t</Contents>\n");
+  }
+  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
+  if (!SWIG_IsOK(res4)) {
+    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_statnode" "', argument " "4"" of type '" "char *""'");
+  }
+  arg4 = (char *)(buf4);
+  result = (struct batch_status *)pbs_statnode(arg1,arg2,arg3,arg4);
+  {
+    PyObject              *obj_batch;
+    struct batch_status   *ptr;
+    int                   i=0, len=0;
+    
+    // printf("Ja we are in bussniss\n");
+    if (SARA_DEBUG) printf("Converteren c (struct batch_status *) -> python:\n");
+    
+    // Deterime length of list
+    //
+    ptr = result;
+    while (ptr != NULL) {
+      len++;
+      ptr = ptr->next;
+    }
+    resultobj = PyList_New(len);
+    
+    if (SARA_DEBUG) printf("\tSize of List: %d\n", len);
+    
+    // Make a list of batch_status pointers
+    //
+    if (SARA_DEBUG) printf("\t<Contents>\n");
+    ptr = result;
+    for (i=0; i < len; i++) {
+      obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_batch_status,0); 
+      PyList_SetItem(resultobj, i, obj_batch);
+      if (SARA_DEBUG)  {
+        printf("\t\t- %s\n", ptr->name);
+      }
+      ptr = ptr->next;
+    }
+    
+    if (SARA_DEBUG) printf("\t</Contents>\n");
+  }
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  return resultobj;
+fail:
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_submit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  struct attropl *arg2 = (struct attropl *) 0 ;
+  char *arg3 = (char *) 0 ;
+  char *arg4 = (char *) 0 ;
+  char *arg5 = (char *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int res3 ;
+  char *buf3 = 0 ;
+  int alloc3 = 0 ;
+  int res4 ;
+  char *buf4 = 0 ;
+  int alloc4 = 0 ;
+  int res5 ;
+  char *buf5 = 0 ;
+  int alloc5 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  PyObject * obj2 = 0 ;
+  PyObject * obj3 = 0 ;
+  PyObject * obj4 = 0 ;
+  char *result = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OOOOO:pbs_submit",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_submit" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  {
+    PyObject          *py_obj;
+    struct attropl    *ptr, *prev;
+    char              s[255];
+    int               i=0, size=0;
+    
+    // printf("Python --> C\n");
+    
+    if (SARA_DEBUG) printf("Converteren python -> c (struct attropl *):\n");
+    
+    size = Get_List_Size(obj1);
+    
+    if (SARA_DEBUG) printf("\tSize attropl List: %d\n", size);
+    
+    if ( size == -1 ) {
+      PyErr_SetString(PyExc_TypeError, "not a list");
+      return NULL; 
+    }
+    //printf("Size = %d\n", size);
+    
+    if (SARA_DEBUG) printf("\t<Contents>\n");
+    
+    arg2 = prev = NULL;
+    for ( i=0; i < size; i++ ) {
+      py_obj = PyList_GetItem(obj1, i);
+      if (SWIG_ConvertPtr(py_obj, (void **) &ptr, SWIGTYPE_p_attropl, 1)) {
+        sprintf(s,"list item %d has wrong type", i);
+        PyErr_SetString(PyExc_TypeError, s);
+        return NULL;
+        
+        // This will skipp the wrong entry
+        // continue;
+      }
+      
+      /* 
+           * Make first entry head of C linked list
+          */ 
+      if ( i == 0) {
+        arg2 = ptr;
+        ptr->next = prev;
+      }
+      else {
+        prev->next = ptr;
+        ptr->next = NULL;
+      }
+      prev = ptr;
+      
+    } // end for
+    if (SARA_DEBUG) printf("\t</Contents>\n");
+  }
+  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
+  if (!SWIG_IsOK(res3)) {
+    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_submit" "', argument " "3"" of type '" "char *""'");
+  }
+  arg3 = (char *)(buf3);
+  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
+  if (!SWIG_IsOK(res4)) {
+    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_submit" "', argument " "4"" of type '" "char *""'");
+  }
+  arg4 = (char *)(buf4);
+  res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5);
+  if (!SWIG_IsOK(res5)) {
+    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pbs_submit" "', argument " "5"" of type '" "char *""'");
+  }
+  arg5 = (char *)(buf5);
+  result = (char *)pbs_submit(arg1,arg2,arg3,arg4,arg5);
+  resultobj = SWIG_FromCharPtr((const char *)result);
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
+  return resultobj;
+fail:
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_terminate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  int arg2 ;
+  char *arg3 = (char *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int val2 ;
+  int ecode2 = 0 ;
+  int res3 ;
+  char *buf3 = 0 ;
+  int alloc3 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  PyObject * obj2 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OOO:pbs_terminate",&obj0,&obj1,&obj2)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_terminate" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  ecode2 = SWIG_AsVal_int(obj1, &val2);
+  if (!SWIG_IsOK(ecode2)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pbs_terminate" "', argument " "2"" of type '" "int""'");
+  } 
+  arg2 = (int)(val2);
+  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
+  if (!SWIG_IsOK(res3)) {
+    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_terminate" "', argument " "3"" of type '" "char *""'");
+  }
+  arg3 = (char *)(buf3);
+  result = (int)pbs_terminate(arg1,arg2,arg3);
+  resultobj = SWIG_From_int((int)(result));
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  return resultobj;
+fail:
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_totpool(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  int arg2 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int val2 ;
+  int ecode2 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OO:totpool",&obj0,&obj1)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "totpool" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  ecode2 = SWIG_AsVal_int(obj1, &val2);
+  if (!SWIG_IsOK(ecode2)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "totpool" "', argument " "2"" of type '" "int""'");
+  } 
+  arg2 = (int)(val2);
+  result = (int)totpool(arg1,arg2);
+  resultobj = SWIG_From_int((int)(result));
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_usepool(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  int arg2 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int val2 ;
+  int ecode2 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OO:usepool",&obj0,&obj1)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "usepool" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  ecode2 = SWIG_AsVal_int(obj1, &val2);
+  if (!SWIG_IsOK(ecode2)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "usepool" "', argument " "2"" of type '" "int""'");
+  } 
+  arg2 = (int)(val2);
+  result = (int)usepool(arg1,arg2);
+  resultobj = SWIG_From_int((int)(result));
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_fbserver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  char *result = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)":pbs_fbserver")) SWIG_fail;
+  result = (char *)pbs_fbserver();
+  resultobj = SWIG_FromCharPtr((const char *)result);
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_get_server_list(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  char *result = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)":pbs_get_server_list")) SWIG_fail;
+  result = (char *)pbs_get_server_list();
+  resultobj = SWIG_FromCharPtr((const char *)result);
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_sigjobasync(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  char *arg2 = (char *) 0 ;
+  char *arg3 = (char *) 0 ;
+  char *arg4 = (char *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  int res3 ;
+  char *buf3 = 0 ;
+  int alloc3 = 0 ;
+  int res4 ;
+  char *buf4 = 0 ;
+  int alloc4 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  PyObject * obj2 = 0 ;
+  PyObject * obj3 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OOOO:pbs_sigjobasync",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_sigjobasync" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_sigjobasync" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
+  if (!SWIG_IsOK(res3)) {
+    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_sigjobasync" "', argument " "3"" of type '" "char *""'");
+  }
+  arg3 = (char *)(buf3);
+  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
+  if (!SWIG_IsOK(res4)) {
+    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_sigjobasync" "', argument " "4"" of type '" "char *""'");
+  }
+  arg4 = (char *)(buf4);
+  result = (int)pbs_sigjobasync(arg1,arg2,arg3,arg4);
+  resultobj = SWIG_From_int((int)(result));
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  return resultobj;
+fail:
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_alterjob_async(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  char *arg2 = (char *) 0 ;
+  struct attrl *arg3 = (struct attrl *) 0 ;
+  char *arg4 = (char *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  int res4 ;
+  char *buf4 = 0 ;
+  int alloc4 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  PyObject * obj2 = 0 ;
+  PyObject * obj3 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OOOO:pbs_alterjob_async",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_alterjob_async" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_alterjob_async" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  {
+    PyObject      *py_obj;
+    struct attrl  *ptr, *prev;
+    char          s[255];
+    int           i=0, size=0;
+    
+    // printf("Python --> C\n");
+    
+    if (SARA_DEBUG) printf("Converteren python -> c (struct attrl *):\n");
+    
+    size = Get_List_Size(obj2);
+    if (SARA_DEBUG) printf("\tSize of attrl List: %d\n", size);
+    
+    if ( size == -1 ) {
+      PyErr_SetString(PyExc_TypeError, "not a list");
+      return NULL; 
+    }
+    
+    if (SARA_DEBUG) printf("\t<Contents>\n");
+    
+    arg3 = prev = NULL;
+    for ( i=0; i < size; i++ ) {
+      py_obj = PyList_GetItem(obj2, i);
+      if (SWIG_ConvertPtr(py_obj, (void **) &ptr, SWIGTYPE_p_attrl, 1)) {
+        sprintf(s,"list item %d has wrong type", i);
+        PyErr_SetString(PyExc_TypeError, s);
+        return NULL;
+        
+        // This will skipp the wrong entry
+        // continue;
+      }
+      
+      /* 
+           * Make first entry head of C linked list
+          */ 
+      if ( i == 0) {
+        arg3 = ptr;
+        ptr->next = prev;
+      }
+      else {
+        prev->next = ptr;
+        ptr->next = NULL;
+      }
+      if (SARA_DEBUG) printf("\t\t- %s\n", ptr->name);
+      
+      prev = ptr;
+      
+    } // end for
+    if (SARA_DEBUG) printf("\t</Contents>\n");
+  }
+  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
+  if (!SWIG_IsOK(res4)) {
+    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_alterjob_async" "', argument " "4"" of type '" "char *""'");
+  }
+  arg4 = (char *)(buf4);
+  result = (int)pbs_alterjob_async(arg1,arg2,arg3,arg4);
+  resultobj = SWIG_From_int((int)(result));
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  return resultobj;
+fail:
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_pbs_checkpointjob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  char *arg2 = (char *) 0 ;
+  char *arg3 = (char *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  int res3 ;
+  char *buf3 = 0 ;
+  int alloc3 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  PyObject * obj2 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OOO:pbs_checkpointjob",&obj0,&obj1,&obj2)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_checkpointjob" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_checkpointjob" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
+  if (!SWIG_IsOK(res3)) {
+    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_checkpointjob" "', argument " "3"" of type '" "char *""'");
+  }
+  arg3 = (char *)(buf3);
+  result = (int)pbs_checkpointjob(arg1,arg2,arg3);
+  resultobj = SWIG_From_int((int)(result));
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  return resultobj;
+fail:
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_openrm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  char *arg1 = (char *) 0 ;
+  unsigned int arg2 ;
+  int res1 ;
+  char *buf1 = 0 ;
+  int alloc1 = 0 ;
+  unsigned int val2 ;
+  int ecode2 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OO:openrm",&obj0,&obj1)) SWIG_fail;
+  res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "openrm" "', argument " "1"" of type '" "char *""'");
+  }
+  arg1 = (char *)(buf1);
+  ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
+  if (!SWIG_IsOK(ecode2)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "openrm" "', argument " "2"" of type '" "unsigned int""'");
+  } 
+  arg2 = (unsigned int)(val2);
+  result = (int)openrm(arg1,arg2);
+  resultobj = SWIG_From_int((int)(result));
+  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
+  return resultobj;
+fail:
+  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_closerm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  PyObject * obj0 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:closerm",&obj0)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "closerm" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  result = (int)closerm(arg1);
+  resultobj = SWIG_From_int((int)(result));
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_downrm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  PyObject * obj0 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:downrm",&obj0)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "downrm" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  result = (int)downrm(arg1);
+  resultobj = SWIG_From_int((int)(result));
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_configrm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  char *arg2 = (char *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OO:configrm",&obj0,&obj1)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "configrm" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "configrm" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  result = (int)configrm(arg1,arg2);
+  resultobj = SWIG_From_int((int)(result));
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  return resultobj;
+fail:
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_addreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  char *arg2 = (char *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OO:addreq",&obj0,&obj1)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "addreq" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "addreq" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  result = (int)addreq(arg1,arg2);
+  resultobj = SWIG_From_int((int)(result));
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  return resultobj;
+fail:
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_allreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  char *arg1 = (char *) 0 ;
+  int res1 ;
+  char *buf1 = 0 ;
+  int alloc1 = 0 ;
+  PyObject * obj0 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:allreq",&obj0)) SWIG_fail;
+  res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "allreq" "', argument " "1"" of type '" "char *""'");
+  }
+  arg1 = (char *)(buf1);
+  result = (int)allreq(arg1);
+  resultobj = SWIG_From_int((int)(result));
+  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
+  return resultobj;
+fail:
+  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_getreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  PyObject * obj0 = 0 ;
+  char *result = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:getreq",&obj0)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "getreq" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  result = (char *)getreq(arg1);
+  resultobj = SWIG_FromCharPtr((const char *)result);
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_flushreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)":flushreq")) SWIG_fail;
+  result = (int)flushreq();
+  resultobj = SWIG_From_int((int)(result));
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_activereq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)":activereq")) SWIG_fail;
+  result = (int)activereq();
+  resultobj = SWIG_From_int((int)(result));
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_fullresp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  PyObject * obj0 = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:fullresp",&obj0)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "fullresp" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  fullresp(arg1);
+  resultobj = SWIG_Py_Void();
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN int Swig_var_log_event_mask_set(PyObject *_val) {
+  {
+    void *argp = 0;
+    int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_long,  0 );  
+    if (!SWIG_IsOK(res)) {
+      SWIG_exception_fail(SWIG_ArgError(res), "in variable '""log_event_mask""' of type '""long *""'");
+    }
+    log_event_mask = (long *)(argp);
+  }
+  return 0;
+fail:
+  return 1;
+}
+
+
+SWIGINTERN PyObject *Swig_var_log_event_mask_get(void) {
+  PyObject *pyobj = 0;
+  
+  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(log_event_mask), SWIGTYPE_p_long,  0 );
+  return pyobj;
+}
+
+
+SWIGINTERN int Swig_var_chk_file_sec_stderr_set(PyObject *_val) {
+  {
+    int val;
+    int res = SWIG_AsVal_int(_val, &val);
+    if (!SWIG_IsOK(res)) {
+      SWIG_exception_fail(SWIG_ArgError(res), "in variable '""chk_file_sec_stderr""' of type '""int""'");
+    }
+    chk_file_sec_stderr = (int)(val);
+  }
+  return 0;
+fail:
+  return 1;
+}
+
+
+SWIGINTERN PyObject *Swig_var_chk_file_sec_stderr_get(void) {
+  PyObject *pyobj = 0;
+  
+  pyobj = SWIG_From_int((int)(chk_file_sec_stderr));
+  return pyobj;
+}
+
+
+SWIGINTERN PyObject *_wrap_log_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  PyObject * obj0 = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:log_close",&obj0)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "log_close" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  log_close(arg1);
+  resultobj = SWIG_Py_Void();
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_log_err(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  char *arg2 = (char *) 0 ;
+  char *arg3 = (char *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  int res3 ;
+  char *buf3 = 0 ;
+  int alloc3 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  PyObject * obj2 = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OOO:log_err",&obj0,&obj1,&obj2)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "log_err" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "log_err" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
+  if (!SWIG_IsOK(res3)) {
+    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "log_err" "', argument " "3"" of type '" "char *""'");
+  }
+  arg3 = (char *)(buf3);
+  log_err(arg1,arg2,arg3);
+  resultobj = SWIG_Py_Void();
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  return resultobj;
+fail:
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_log_event(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  int arg2 ;
+  char *arg3 = (char *) 0 ;
+  char *arg4 = (char *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int val2 ;
+  int ecode2 = 0 ;
+  int res3 ;
+  char *buf3 = 0 ;
+  int alloc3 = 0 ;
+  int res4 ;
+  char *buf4 = 0 ;
+  int alloc4 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  PyObject * obj2 = 0 ;
+  PyObject * obj3 = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OOOO:log_event",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "log_event" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  ecode2 = SWIG_AsVal_int(obj1, &val2);
+  if (!SWIG_IsOK(ecode2)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "log_event" "', argument " "2"" of type '" "int""'");
+  } 
+  arg2 = (int)(val2);
+  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
+  if (!SWIG_IsOK(res3)) {
+    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "log_event" "', argument " "3"" of type '" "char *""'");
+  }
+  arg3 = (char *)(buf3);
+  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
+  if (!SWIG_IsOK(res4)) {
+    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "log_event" "', argument " "4"" of type '" "char *""'");
+  }
+  arg4 = (char *)(buf4);
+  log_event(arg1,arg2,arg3,arg4);
+  resultobj = SWIG_Py_Void();
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  return resultobj;
+fail:
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_log_open(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  char *arg1 = (char *) 0 ;
+  char *arg2 = (char *) 0 ;
+  int res1 ;
+  char *buf1 = 0 ;
+  int alloc1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OO:log_open",&obj0,&obj1)) SWIG_fail;
+  res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "log_open" "', argument " "1"" of type '" "char *""'");
+  }
+  arg1 = (char *)(buf1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "log_open" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  result = (int)log_open(arg1,arg2);
+  resultobj = SWIG_From_int((int)(result));
+  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  return resultobj;
+fail:
+  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_log_record(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  int arg2 ;
+  char *arg3 = (char *) 0 ;
+  char *arg4 = (char *) 0 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int val2 ;
+  int ecode2 = 0 ;
+  int res3 ;
+  char *buf3 = 0 ;
+  int alloc3 = 0 ;
+  int res4 ;
+  char *buf4 = 0 ;
+  int alloc4 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  PyObject * obj2 = 0 ;
+  PyObject * obj3 = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OOOO:log_record",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "log_record" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  ecode2 = SWIG_AsVal_int(obj1, &val2);
+  if (!SWIG_IsOK(ecode2)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "log_record" "', argument " "2"" of type '" "int""'");
+  } 
+  arg2 = (int)(val2);
+  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
+  if (!SWIG_IsOK(res3)) {
+    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "log_record" "', argument " "3"" of type '" "char *""'");
+  }
+  arg3 = (char *)(buf3);
+  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
+  if (!SWIG_IsOK(res4)) {
+    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "log_record" "', argument " "4"" of type '" "char *""'");
+  }
+  arg4 = (char *)(buf4);
+  log_record(arg1,arg2,arg3,arg4);
+  resultobj = SWIG_Py_Void();
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  return resultobj;
+fail:
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_log_roll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  PyObject * obj0 = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:log_roll",&obj0)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "log_roll" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  log_roll(arg1);
+  resultobj = SWIG_Py_Void();
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_log_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  long result;
+  
+  if (!PyArg_ParseTuple(args,(char *)":log_size")) SWIG_fail;
+  result = (long)log_size();
+  resultobj = SWIG_From_long((long)(result));
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
+SWIGINTERN int Swig_var_log_buffer_set(PyObject *_val) {
+  {
+    int res = SWIG_AsCharArray(_val, log_buffer, 16384);
+    if (!SWIG_IsOK(res)) {
+      SWIG_exception_fail(SWIG_ArgError(res), "in variable '""log_buffer""' of type '""char [16384]""'");
+    }
+  }
+  return 0;
+fail:
+  return 1;
+}
+
+
+SWIGINTERN PyObject *Swig_var_log_buffer_get(void) {
+  PyObject *pyobj = 0;
+  
+  size_t size = 16384;
+  
+  while (size && (log_buffer[size - 1] == '\0')) --size;
+  
+  pyobj = SWIG_FromCharPtrAndSize(log_buffer, size);
+  return pyobj;
+}
+
+
+SWIGINTERN PyObject *_wrap_chk_file_sec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  char *arg1 = (char *) 0 ;
+  int arg2 ;
+  int arg3 ;
+  int arg4 ;
+  int arg5 ;
+  char *arg6 = (char *) 0 ;
+  int res1 ;
+  char *buf1 = 0 ;
+  int alloc1 = 0 ;
+  int val2 ;
+  int ecode2 = 0 ;
+  int val3 ;
+  int ecode3 = 0 ;
+  int val4 ;
+  int ecode4 = 0 ;
+  int val5 ;
+  int ecode5 = 0 ;
+  int res6 ;
+  char *buf6 = 0 ;
+  int alloc6 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  PyObject * obj2 = 0 ;
+  PyObject * obj3 = 0 ;
+  PyObject * obj4 = 0 ;
+  PyObject * obj5 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OOOOOO:chk_file_sec",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
+  res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "chk_file_sec" "', argument " "1"" of type '" "char *""'");
+  }
+  arg1 = (char *)(buf1);
+  ecode2 = SWIG_AsVal_int(obj1, &val2);
+  if (!SWIG_IsOK(ecode2)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "chk_file_sec" "', argument " "2"" of type '" "int""'");
+  } 
+  arg2 = (int)(val2);
+  ecode3 = SWIG_AsVal_int(obj2, &val3);
+  if (!SWIG_IsOK(ecode3)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "chk_file_sec" "', argument " "3"" of type '" "int""'");
+  } 
+  arg3 = (int)(val3);
+  ecode4 = SWIG_AsVal_int(obj3, &val4);
+  if (!SWIG_IsOK(ecode4)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "chk_file_sec" "', argument " "4"" of type '" "int""'");
+  } 
+  arg4 = (int)(val4);
+  ecode5 = SWIG_AsVal_int(obj4, &val5);
+  if (!SWIG_IsOK(ecode5)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "chk_file_sec" "', argument " "5"" of type '" "int""'");
+  } 
+  arg5 = (int)(val5);
+  res6 = SWIG_AsCharPtrAndSize(obj5, &buf6, NULL, &alloc6);
+  if (!SWIG_IsOK(res6)) {
+    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "chk_file_sec" "', argument " "6"" of type '" "char *""'");
+  }
+  arg6 = (char *)(buf6);
+  result = (int)chk_file_sec(arg1,arg2,arg3,arg4,arg5,arg6);
+  resultobj = SWIG_From_int((int)(result));
+  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
+  if (alloc6 == SWIG_NEWOBJ) free((char*)buf6);
+  return resultobj;
+fail:
+  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
+  if (alloc6 == SWIG_NEWOBJ) free((char*)buf6);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_setup_env(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  char *arg1 = (char *) 0 ;
+  int res1 ;
+  char *buf1 = 0 ;
+  int alloc1 = 0 ;
+  PyObject * obj0 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"O:setup_env",&obj0)) SWIG_fail;
+  res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "setup_env" "', argument " "1"" of type '" "char *""'");
+  }
+  arg1 = (char *)(buf1);
+  result = (int)setup_env(arg1);
+  resultobj = SWIG_From_int((int)(result));
+  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
+  return resultobj;
+fail:
+  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_log_ext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  int arg1 ;
+  char *arg2 = (char *) 0 ;
+  char *arg3 = (char *) 0 ;
+  int arg4 ;
+  int val1 ;
+  int ecode1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  int res3 ;
+  char *buf3 = 0 ;
+  int alloc3 = 0 ;
+  int val4 ;
+  int ecode4 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  PyObject * obj2 = 0 ;
+  PyObject * obj3 = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OOOO:log_ext",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
+  ecode1 = SWIG_AsVal_int(obj0, &val1);
+  if (!SWIG_IsOK(ecode1)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "log_ext" "', argument " "1"" of type '" "int""'");
+  } 
+  arg1 = (int)(val1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "log_ext" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
+  if (!SWIG_IsOK(res3)) {
+    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "log_ext" "', argument " "3"" of type '" "char *""'");
+  }
+  arg3 = (char *)(buf3);
+  ecode4 = SWIG_AsVal_int(obj3, &val4);
+  if (!SWIG_IsOK(ecode4)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "log_ext" "', argument " "4"" of type '" "int""'");
+  } 
+  arg4 = (int)(val4);
+  log_ext(arg1,arg2,arg3,arg4);
+  resultobj = SWIG_Py_Void();
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  return resultobj;
+fail:
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_log_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  char *arg1 = (char *) 0 ;
+  char *arg2 = (char *) 0 ;
+  int res1 ;
+  char *buf1 = 0 ;
+  int alloc1 = 0 ;
+  int res2 ;
+  char *buf2 = 0 ;
+  int alloc2 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OO:log_init",&obj0,&obj1)) SWIG_fail;
+  res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "log_init" "', argument " "1"" of type '" "char *""'");
+  }
+  arg1 = (char *)(buf1);
+  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+  if (!SWIG_IsOK(res2)) {
+    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "log_init" "', argument " "2"" of type '" "char *""'");
+  }
+  arg2 = (char *)(buf2);
+  result = (int)log_init(arg1,arg2);
+  resultobj = SWIG_From_int((int)(result));
+  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  return resultobj;
+fail:
+  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
+  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+  return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_log_remove_old(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  char *arg1 = (char *) 0 ;
+  unsigned long arg2 ;
+  int res1 ;
+  char *buf1 = 0 ;
+  int alloc1 = 0 ;
+  unsigned long val2 ;
+  int ecode2 = 0 ;
+  PyObject * obj0 = 0 ;
+  PyObject * obj1 = 0 ;
+  int result;
+  
+  if (!PyArg_ParseTuple(args,(char *)"OO:log_remove_old",&obj0,&obj1)) SWIG_fail;
+  res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "log_remove_old" "', argument " "1"" of type '" "char *""'");
+  }
+  arg1 = (char *)(buf1);
+  ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
+  if (!SWIG_IsOK(ecode2)) {
+    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "log_remove_old" "', argument " "2"" of type '" "unsigned long""'");
+  } 
+  arg2 = (unsigned long)(val2);
+  result = (int)log_remove_old(arg1,arg2);
+  resultobj = SWIG_From_int((int)(result));
+  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
+  return resultobj;
+fail:
+  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
+  return NULL;
+}
+
+
+SWIGINTERN int Swig_var_msg_daemonname_set(PyObject *_val) {
+  {
+    char *cptr = 0; size_t csize = 0; int alloc = SWIG_NEWOBJ;
+    int res = SWIG_AsCharPtrAndSize(_val, &cptr, &csize, &alloc);
+    if (!SWIG_IsOK(res)) {
+      SWIG_exception_fail(SWIG_ArgError(res), "in variable '""msg_daemonname""' of type '""char *""'");
+    }
+    if (msg_daemonname) free((char*)msg_daemonname);
+    if (alloc == SWIG_NEWOBJ) {
+      msg_daemonname = cptr;
+    } else {
+      msg_daemonname = csize ? (char *)(char *)memcpy((char *)malloc((csize)*sizeof(char)), cptr, sizeof(char)*(csize)) : 0;
+    }
+  }
+  return 0;
+fail:
+  return 1;
+}
+
+
+SWIGINTERN PyObject *Swig_var_msg_daemonname_get(void) {
+  PyObject *pyobj = 0;
+  
+  pyobj = SWIG_FromCharPtr(msg_daemonname);
+  return pyobj;
+}
+
+
+static PyMethodDef SwigMethods[] = {
+	 { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL},
+	 { (char *)"new_attrl", _wrap_new_attrl, METH_VARARGS, NULL},
+	 { (char *)"new_attropl", _wrap_new_attropl, METH_VARARGS, NULL},
+	 { (char *)"new_batch_status", _wrap_new_batch_status, METH_VARARGS, NULL},
+	 { (char *)"get_error", _wrap_get_error, METH_VARARGS, NULL},
+	 { (char *)"attrl_next_set", _wrap_attrl_next_set, METH_VARARGS, NULL},
+	 { (char *)"attrl_next_get", _wrap_attrl_next_get, METH_VARARGS, NULL},
+	 { (char *)"attrl_name_set", _wrap_attrl_name_set, METH_VARARGS, NULL},
+	 { (char *)"attrl_name_get", _wrap_attrl_name_get, METH_VARARGS, NULL},
+	 { (char *)"attrl_resource_set", _wrap_attrl_resource_set, METH_VARARGS, NULL},
+	 { (char *)"attrl_resource_get", _wrap_attrl_resource_get, METH_VARARGS, NULL},
+	 { (char *)"attrl_value_set", _wrap_attrl_value_set, METH_VARARGS, NULL},
+	 { (char *)"attrl_value_get", _wrap_attrl_value_get, METH_VARARGS, NULL},
+	 { (char *)"attrl_op_set", _wrap_attrl_op_set, METH_VARARGS, NULL},
+	 { (char *)"attrl_op_get", _wrap_attrl_op_get, METH_VARARGS, NULL},
+	 { (char *)"attrl___str__", _wrap_attrl___str__, METH_VARARGS, NULL},
+	 { (char *)"delete_attrl", _wrap_delete_attrl, METH_VARARGS, NULL},
+	 { (char *)"attrl_swigregister", attrl_swigregister, METH_VARARGS, NULL},
+	 { (char *)"attropl_next_set", _wrap_attropl_next_set, METH_VARARGS, NULL},
+	 { (char *)"attropl_next_get", _wrap_attropl_next_get, METH_VARARGS, NULL},
+	 { (char *)"attropl_name_set", _wrap_attropl_name_set, METH_VARARGS, NULL},
+	 { (char *)"attropl_name_get", _wrap_attropl_name_get, METH_VARARGS, NULL},
+	 { (char *)"attropl_resource_set", _wrap_attropl_resource_set, METH_VARARGS, NULL},
+	 { (char *)"attropl_resource_get", _wrap_attropl_resource_get, METH_VARARGS, NULL},
+	 { (char *)"attropl_value_set", _wrap_attropl_value_set, METH_VARARGS, NULL},
+	 { (char *)"attropl_value_get", _wrap_attropl_value_get, METH_VARARGS, NULL},
+	 { (char *)"attropl_op_set", _wrap_attropl_op_set, METH_VARARGS, NULL},
+	 { (char *)"attropl_op_get", _wrap_attropl_op_get, METH_VARARGS, NULL},
+	 { (char *)"attropl___str__", _wrap_attropl___str__, METH_VARARGS, NULL},
+	 { (char *)"delete_attropl", _wrap_delete_attropl, METH_VARARGS, NULL},
+	 { (char *)"attropl_swigregister", attropl_swigregister, METH_VARARGS, NULL},
+	 { (char *)"batch_status_next_set", _wrap_batch_status_next_set, METH_VARARGS, NULL},
+	 { (char *)"batch_status_next_get", _wrap_batch_status_next_get, METH_VARARGS, NULL},
+	 { (char *)"batch_status_name_set", _wrap_batch_status_name_set, METH_VARARGS, NULL},
+	 { (char *)"batch_status_name_get", _wrap_batch_status_name_get, METH_VARARGS, NULL},
+	 { (char *)"batch_status_attribs_set", _wrap_batch_status_attribs_set, METH_VARARGS, NULL},
+	 { (char *)"batch_status_attribs_get", _wrap_batch_status_attribs_get, METH_VARARGS, NULL},
+	 { (char *)"batch_status_text_set", _wrap_batch_status_text_set, METH_VARARGS, NULL},
+	 { (char *)"batch_status_text_get", _wrap_batch_status_text_get, METH_VARARGS, NULL},
+	 { (char *)"batch_status_swigregister", batch_status_swigregister, METH_VARARGS, NULL},
+	 { (char *)"avail", _wrap_avail, METH_VARARGS, NULL},
+	 { (char *)"pbs_asyrunjob", _wrap_pbs_asyrunjob, METH_VARARGS, NULL},
+	 { (char *)"pbs_alterjob", _wrap_pbs_alterjob, METH_VARARGS, NULL},
+	 { (char *)"pbs_connect", _wrap_pbs_connect, METH_VARARGS, NULL},
+	 { (char *)"pbs_query_max_connections", _wrap_pbs_query_max_connections, METH_VARARGS, NULL},
+	 { (char *)"pbs_default", _wrap_pbs_default, METH_VARARGS, NULL},
+	 { (char *)"pbs_deljob", _wrap_pbs_deljob, METH_VARARGS, NULL},
+	 { (char *)"pbs_disconnect", _wrap_pbs_disconnect, METH_VARARGS, NULL},
+	 { (char *)"pbs_geterrmsg", _wrap_pbs_geterrmsg, METH_VARARGS, NULL},
+	 { (char *)"pbs_holdjob", _wrap_pbs_holdjob, METH_VARARGS, NULL},
+	 { (char *)"pbs_locjob", _wrap_pbs_locjob, METH_VARARGS, NULL},
+	 { (char *)"pbs_manager", _wrap_pbs_manager, METH_VARARGS, NULL},
+	 { (char *)"pbs_movejob", _wrap_pbs_movejob, METH_VARARGS, NULL},
+	 { (char *)"pbs_msgjob", _wrap_pbs_msgjob, METH_VARARGS, NULL},
+	 { (char *)"pbs_orderjob", _wrap_pbs_orderjob, METH_VARARGS, NULL},
+	 { (char *)"pbs_rescquery", _wrap_pbs_rescquery, METH_VARARGS, NULL},
+	 { (char *)"pbs_rescreserve", _wrap_pbs_rescreserve, METH_VARARGS, NULL},
+	 { (char *)"pbs_rescrelease", _wrap_pbs_rescrelease, METH_VARARGS, NULL},
+	 { (char *)"pbs_rerunjob", _wrap_pbs_rerunjob, METH_VARARGS, NULL},
+	 { (char *)"pbs_rlsjob", _wrap_pbs_rlsjob, METH_VARARGS, NULL},
+	 { (char *)"pbs_runjob", _wrap_pbs_runjob, METH_VARARGS, NULL},
+	 { (char *)"pbs_selectjob", _wrap_pbs_selectjob, METH_VARARGS, NULL},
+	 { (char *)"pbs_sigjob", _wrap_pbs_sigjob, METH_VARARGS, NULL},
+	 { (char *)"pbs_statfree", _wrap_pbs_statfree, METH_VARARGS, NULL},
+	 { (char *)"pbs_statjob", _wrap_pbs_statjob, METH_VARARGS, NULL},
+	 { (char *)"pbs_selstat", _wrap_pbs_selstat, METH_VARARGS, NULL},
+	 { (char *)"pbs_statque", _wrap_pbs_statque, METH_VARARGS, NULL},
+	 { (char *)"pbs_statserver", _wrap_pbs_statserver, METH_VARARGS, NULL},
+	 { (char *)"pbs_statnode", _wrap_pbs_statnode, METH_VARARGS, NULL},
+	 { (char *)"pbs_submit", _wrap_pbs_submit, METH_VARARGS, NULL},
+	 { (char *)"pbs_terminate", _wrap_pbs_terminate, METH_VARARGS, NULL},
+	 { (char *)"totpool", _wrap_totpool, METH_VARARGS, NULL},
+	 { (char *)"usepool", _wrap_usepool, METH_VARARGS, NULL},
+	 { (char *)"pbs_fbserver", _wrap_pbs_fbserver, METH_VARARGS, NULL},
+	 { (char *)"pbs_get_server_list", _wrap_pbs_get_server_list, METH_VARARGS, NULL},
+	 { (char *)"pbs_sigjobasync", _wrap_pbs_sigjobasync, METH_VARARGS, NULL},
+	 { (char *)"pbs_alterjob_async", _wrap_pbs_alterjob_async, METH_VARARGS, NULL},
+	 { (char *)"pbs_checkpointjob", _wrap_pbs_checkpointjob, METH_VARARGS, NULL},
+	 { (char *)"openrm", _wrap_openrm, METH_VARARGS, NULL},
+	 { (char *)"closerm", _wrap_closerm, METH_VARARGS, NULL},
+	 { (char *)"downrm", _wrap_downrm, METH_VARARGS, NULL},
+	 { (char *)"configrm", _wrap_configrm, METH_VARARGS, NULL},
+	 { (char *)"addreq", _wrap_addreq, METH_VARARGS, NULL},
+	 { (char *)"allreq", _wrap_allreq, METH_VARARGS, NULL},
+	 { (char *)"getreq", _wrap_getreq, METH_VARARGS, NULL},
+	 { (char *)"flushreq", _wrap_flushreq, METH_VARARGS, NULL},
+	 { (char *)"activereq", _wrap_activereq, METH_VARARGS, NULL},
+	 { (char *)"fullresp", _wrap_fullresp, METH_VARARGS, NULL},
+	 { (char *)"log_close", _wrap_log_close, METH_VARARGS, NULL},
+	 { (char *)"log_err", _wrap_log_err, METH_VARARGS, NULL},
+	 { (char *)"log_event", _wrap_log_event, METH_VARARGS, NULL},
+	 { (char *)"log_open", _wrap_log_open, METH_VARARGS, NULL},
+	 { (char *)"log_record", _wrap_log_record, METH_VARARGS, NULL},
+	 { (char *)"log_roll", _wrap_log_roll, METH_VARARGS, NULL},
+	 { (char *)"log_size", _wrap_log_size, METH_VARARGS, NULL},
+	 { (char *)"chk_file_sec", _wrap_chk_file_sec, METH_VARARGS, NULL},
+	 { (char *)"setup_env", _wrap_setup_env, METH_VARARGS, NULL},
+	 { (char *)"log_ext", _wrap_log_ext, METH_VARARGS, NULL},
+	 { (char *)"log_init", _wrap_log_init, METH_VARARGS, NULL},
+	 { (char *)"log_remove_old", _wrap_log_remove_old, METH_VARARGS, NULL},
+	 { NULL, NULL, 0, NULL }
+};
+
+
+/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
+
+static swig_type_info _swigt__p_attrl = {"_p_attrl", "struct attrl *|attrl *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_attropl = {"_p_attropl", "struct attropl *|attropl *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_batch_status = {"_p_batch_status", "struct batch_status *|batch_status *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_int = {"_p_int", "int *|resource_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0};
+
+static swig_type_info *swig_type_initial[] = {
+  &_swigt__p_attrl,
+  &_swigt__p_attropl,
+  &_swigt__p_batch_status,
+  &_swigt__p_char,
+  &_swigt__p_int,
+  &_swigt__p_long,
+  &_swigt__p_p_char,
+};
+
+static swig_cast_info _swigc__p_attrl[] = {  {&_swigt__p_attrl, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_attropl[] = {  {&_swigt__p_attropl, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_batch_status[] = {  {&_swigt__p_batch_status, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_char[] = {  {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_int[] = {  {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_long[] = {  {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_p_char[] = {  {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}};
+
+static swig_cast_info *swig_cast_initial[] = {
+  _swigc__p_attrl,
+  _swigc__p_attropl,
+  _swigc__p_batch_status,
+  _swigc__p_char,
+  _swigc__p_int,
+  _swigc__p_long,
+  _swigc__p_p_char,
+};
+
+
+/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
+
+static swig_const_info swig_const_table[] = {
+{0, 0, 0, 0.0, 0, 0}};
+
+#ifdef __cplusplus
+}
+#endif
+/* -----------------------------------------------------------------------------
+ * Type initialization:
+ * This problem is tough by the requirement that no dynamic 
+ * memory is used. Also, since swig_type_info structures store pointers to 
+ * swig_cast_info structures and swig_cast_info structures store pointers back
+ * to swig_type_info structures, we need some lookup code at initialization. 
+ * The idea is that swig generates all the structures that are needed. 
+ * The runtime then collects these partially filled structures. 
+ * The SWIG_InitializeModule function takes these initial arrays out of 
+ * swig_module, and does all the lookup, filling in the swig_module.types
+ * array with the correct data and linking the correct swig_cast_info
+ * structures together.
+ *
+ * The generated swig_type_info structures are assigned staticly to an initial 
+ * array. We just loop through that array, and handle each type individually.
+ * First we lookup if this type has been already loaded, and if so, use the
+ * loaded structure instead of the generated one. Then we have to fill in the
+ * cast linked list. The cast data is initially stored in something like a
+ * two-dimensional array. Each row corresponds to a type (there are the same
+ * number of rows as there are in the swig_type_initial array). Each entry in
+ * a column is one of the swig_cast_info structures for that type.
+ * The cast_initial array is actually an array of arrays, because each row has
+ * a variable number of columns. So to actually build the cast linked list,
+ * we find the array of casts associated with the type, and loop through it 
+ * adding the casts to the list. The one last trick we need to do is making
+ * sure the type pointer in the swig_cast_info struct is correct.
+ *
+ * First off, we lookup the cast->type name to see if it is already loaded. 
+ * There are three cases to handle:
+ *  1) If the cast->type has already been loaded AND the type we are adding
+ *     casting info to has not been loaded (it is in this module), THEN we
+ *     replace the cast->type pointer with the type pointer that has already
+ *     been loaded.
+ *  2) If BOTH types (the one we are adding casting info to, and the 
+ *     cast->type) are loaded, THEN the cast info has already been loaded by
+ *     the previous module so we just ignore it.
+ *  3) Finally, if cast->type has not already been loaded, then we add that
+ *     swig_cast_info to the linked list (because the cast->type) pointer will
+ *     be correct.
+ * ----------------------------------------------------------------------------- */
+
+#ifdef __cplusplus
+extern "C" {
+#if 0
+} /* c-mode */
+#endif
+#endif
+
+#if 0
+#define SWIGRUNTIME_DEBUG
+#endif
+
+
+SWIGRUNTIME void
+SWIG_InitializeModule(void *clientdata) {
+  size_t i;
+  swig_module_info *module_head, *iter;
+  int found, init;
+  
+  clientdata = clientdata;
+  
+  /* check to see if the circular list has been setup, if not, set it up */
+  if (swig_module.next==0) {
+    /* Initialize the swig_module */
+    swig_module.type_initial = swig_type_initial;
+    swig_module.cast_initial = swig_cast_initial;
+    swig_module.next = &swig_module;
+    init = 1;
+  } else {
+    init = 0;
+  }
+  
+  /* Try and load any already created modules */
+  module_head = SWIG_GetModule(clientdata);
+  if (!module_head) {
+    /* This is the first module loaded for this interpreter */
+    /* so set the swig module into the interpreter */
+    SWIG_SetModule(clientdata, &swig_module);
+    module_head = &swig_module;
+  } else {
+    /* the interpreter has loaded a SWIG module, but has it loaded this one? */
+    found=0;
+    iter=module_head;
+    do {
+      if (iter==&swig_module) {
+        found=1;
+        break;
+      }
+      iter=iter->next;
+    } while (iter!= module_head);
+    
+    /* if the is found in the list, then all is done and we may leave */
+    if (found) return;
+    /* otherwise we must add out module into the list */
+    swig_module.next = module_head->next;
+    module_head->next = &swig_module;
+  }
+  
+  /* When multiple interpeters are used, a module could have already been initialized in
+       a different interpreter, but not yet have a pointer in this interpreter.
+       In this case, we do not want to continue adding types... everything should be
+       set up already */
+  if (init == 0) return;
+  
+  /* Now work on filling in swig_module.types */
+#ifdef SWIGRUNTIME_DEBUG
+  printf("SWIG_InitializeModule: size %d\n", swig_module.size);
+#endif
+  for (i = 0; i < swig_module.size; ++i) {
+    swig_type_info *type = 0;
+    swig_type_info *ret;
+    swig_cast_info *cast;
+    
+#ifdef SWIGRUNTIME_DEBUG
+    printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
+#endif
+    
+    /* if there is another module already loaded */
+    if (swig_module.next != &swig_module) {
+      type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
+    }
+    if (type) {
+      /* Overwrite clientdata field */
+#ifdef SWIGRUNTIME_DEBUG
+      printf("SWIG_InitializeModule: found type %s\n", type->name);
+#endif
+      if (swig_module.type_initial[i]->clientdata) {
+        type->clientdata = swig_module.type_initial[i]->clientdata;
+#ifdef SWIGRUNTIME_DEBUG
+        printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
+#endif
+      }
+    } else {
+      type = swig_module.type_initial[i];
+    }
+    
+    /* Insert casting types */
+    cast = swig_module.cast_initial[i];
+    while (cast->type) {
+      /* Don't need to add information already in the list */
+      ret = 0;
+#ifdef SWIGRUNTIME_DEBUG
+      printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
+#endif
+      if (swig_module.next != &swig_module) {
+        ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
+#ifdef SWIGRUNTIME_DEBUG
+        if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
+#endif
+      }
+      if (ret) {
+        if (type == swig_module.type_initial[i]) {
+#ifdef SWIGRUNTIME_DEBUG
+          printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
+#endif
+          cast->type = ret;
+          ret = 0;
+        } else {
+          /* Check for casting already in the list */
+          swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
+#ifdef SWIGRUNTIME_DEBUG
+          if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
+#endif
+          if (!ocast) ret = 0;
+        }
+      }
+      
+      if (!ret) {
+#ifdef SWIGRUNTIME_DEBUG
+        printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
+#endif
+        if (type->cast) {
+          type->cast->prev = cast;
+          cast->next = type->cast;
+        }
+        type->cast = cast;
+      }
+      cast++;
+    }
+    /* Set entry in modules->types array equal to the type */
+    swig_module.types[i] = type;
+  }
+  swig_module.types[i] = 0;
+  
+#ifdef SWIGRUNTIME_DEBUG
+  printf("**** SWIG_InitializeModule: Cast List ******\n");
+  for (i = 0; i < swig_module.size; ++i) {
+    int j = 0;
+    swig_cast_info *cast = swig_module.cast_initial[i];
+    printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
+    while (cast->type) {
+      printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
+      cast++;
+      ++j;
+    }
+    printf("---- Total casts: %d\n",j);
+  }
+  printf("**** SWIG_InitializeModule: Cast List ******\n");
+#endif
+}
+
+/* This function will propagate the clientdata field of type to
+* any new swig_type_info structures that have been added into the list
+* of equivalent types.  It is like calling
+* SWIG_TypeClientData(type, clientdata) a second time.
+*/
+SWIGRUNTIME void
+SWIG_PropagateClientData(void) {
+  size_t i;
+  swig_cast_info *equiv;
+  static int init_run = 0;
+  
+  if (init_run) return;
+  init_run = 1;
+  
+  for (i = 0; i < swig_module.size; i++) {
+    if (swig_module.types[i]->clientdata) {
+      equiv = swig_module.types[i]->cast;
+      while (equiv) {
+        if (!equiv->converter) {
+          if (equiv->type && !equiv->type->clientdata)
+          SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
+        }
+        equiv = equiv->next;
+      }
+    }
+  }
+}
+
+#ifdef __cplusplus
+#if 0
+{
+  /* c-mode */
+#endif
+}
+#endif
+
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+  
+  /* Python-specific SWIG API */
+#define SWIG_newvarlink()                             SWIG_Python_newvarlink()
+#define SWIG_addvarlink(p, name, get_attr, set_attr)  SWIG_Python_addvarlink(p, name, get_attr, set_attr)
+#define SWIG_InstallConstants(d, constants)           SWIG_Python_InstallConstants(d, constants)
+  
+  /* -----------------------------------------------------------------------------
+   * global variable support code.
+   * ----------------------------------------------------------------------------- */
+  
+  typedef struct swig_globalvar {
+    char       *name;                  /* Name of global variable */
+    PyObject *(*get_attr)(void);       /* Return the current value */
+    int       (*set_attr)(PyObject *); /* Set the value */
+    struct swig_globalvar *next;
+  } swig_globalvar;
+  
+  typedef struct swig_varlinkobject {
+    PyObject_HEAD
+    swig_globalvar *vars;
+  } swig_varlinkobject;
+  
+  SWIGINTERN PyObject *
+  swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
+#if PY_VERSION_HEX >= 0x03000000
+    return PyUnicode_InternFromString("<Swig global variables>");
+#else
+    return PyString_FromString("<Swig global variables>");
+#endif
+  }
+  
+  SWIGINTERN PyObject *
+  swig_varlink_str(swig_varlinkobject *v) {
+#if PY_VERSION_HEX >= 0x03000000
+    PyObject *str = PyUnicode_InternFromString("(");
+    PyObject *tail;
+    PyObject *joined;
+    swig_globalvar *var;
+    for (var = v->vars; var; var=var->next) {
+      tail = PyUnicode_FromString(var->name);
+      joined = PyUnicode_Concat(str, tail);
+      Py_DecRef(str);
+      Py_DecRef(tail);
+      str = joined;
+      if (var->next) {
+        tail = PyUnicode_InternFromString(", ");
+        joined = PyUnicode_Concat(str, tail);
+        Py_DecRef(str);
+        Py_DecRef(tail);
+        str = joined;
+      }
+    }
+    tail = PyUnicode_InternFromString(")");
+    joined = PyUnicode_Concat(str, tail);
+    Py_DecRef(str);
+    Py_DecRef(tail);
+    str = joined;
+#else
+    PyObject *str = PyString_FromString("(");
+    swig_globalvar *var;
+    for (var = v->vars; var; var=var->next) {
+      PyString_ConcatAndDel(&str,PyString_FromString(var->name));
+      if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
+    }
+    PyString_ConcatAndDel(&str,PyString_FromString(")"));
+#endif
+    return str;
+  }
+  
+  SWIGINTERN int
+  swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
+    char *tmp;
+    PyObject *str = swig_varlink_str(v);
+    fprintf(fp,"Swig global variables ");
+    fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str));
+    SWIG_Python_str_DelForPy3(tmp);
+    Py_DECREF(str);
+    return 0;
+  }
+  
+  SWIGINTERN void
+  swig_varlink_dealloc(swig_varlinkobject *v) {
+    swig_globalvar *var = v->vars;
+    while (var) {
+      swig_globalvar *n = var->next;
+      free(var->name);
+      free(var);
+      var = n;
+    }
+  }
+  
+  SWIGINTERN PyObject *
+  swig_varlink_getattr(swig_varlinkobject *v, char *n) {
+    PyObject *res = NULL;
+    swig_globalvar *var = v->vars;
+    while (var) {
+      if (strcmp(var->name,n) == 0) {
+        res = (*var->get_attr)();
+        break;
+      }
+      var = var->next;
+    }
+    if (res == NULL && !PyErr_Occurred()) {
+      PyErr_SetString(PyExc_NameError,"Unknown C global variable");
+    }
+    return res;
+  }
+  
+  SWIGINTERN int
+  swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
+    int res = 1;
+    swig_globalvar *var = v->vars;
+    while (var) {
+      if (strcmp(var->name,n) == 0) {
+        res = (*var->set_attr)(p);
+        break;
+      }
+      var = var->next;
+    }
+    if (res == 1 && !PyErr_Occurred()) {
+      PyErr_SetString(PyExc_NameError,"Unknown C global variable");
+    }
+    return res;
+  }
+  
+  SWIGINTERN PyTypeObject*
+  swig_varlink_type(void) {
+    static char varlink__doc__[] = "Swig var link object";
+    static PyTypeObject varlink_type;
+    static int type_init = 0;  
+    if (!type_init) {
+      const PyTypeObject tmp
+      = {
+        /* PyObject header changed in Python 3 */
+#if PY_VERSION_HEX >= 0x03000000
+        PyVarObject_HEAD_INIT(&PyType_Type, 0)
+#else
+        PyObject_HEAD_INIT(NULL)
+        0,                                  /* Number of items in variable part (ob_size) */
+#endif
+        (char *)"swigvarlink",              /* Type name (tp_name) */
+        sizeof(swig_varlinkobject),         /* Basic size (tp_basicsize) */
+        0,                                  /* Itemsize (tp_itemsize) */
+        (destructor) swig_varlink_dealloc,  /* Deallocator (tp_dealloc) */ 
+        (printfunc) swig_varlink_print,     /* Print (tp_print) */
+        (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
+        (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
+        0,                                  /* tp_compare */
+        (reprfunc) swig_varlink_repr,       /* tp_repr */
+        0,                                  /* tp_as_number */
+        0,                                  /* tp_as_sequence */
+        0,                                  /* tp_as_mapping */
+        0,                                  /* tp_hash */
+        0,                                  /* tp_call */
+        (reprfunc) swig_varlink_str,        /* tp_str */
+        0,                                  /* tp_getattro */
+        0,                                  /* tp_setattro */
+        0,                                  /* tp_as_buffer */
+        0,                                  /* tp_flags */
+        varlink__doc__,                     /* tp_doc */
+        0,                                  /* tp_traverse */
+        0,                                  /* tp_clear */
+        0,                                  /* tp_richcompare */
+        0,                                  /* tp_weaklistoffset */
+#if PY_VERSION_HEX >= 0x02020000
+        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
+#endif
+#if PY_VERSION_HEX >= 0x02030000
+        0,                                  /* tp_del */
+#endif
+#ifdef COUNT_ALLOCS
+        0,0,0,0                             /* tp_alloc -> tp_next */
+#endif
+      };
+      varlink_type = tmp;
+      /* for Python 3 we already assigned ob_type in PyVarObject_HEAD_INIT() */
+#if PY_VERSION_HEX < 0x03000000
+      varlink_type.ob_type = &PyType_Type;
+#endif
+      type_init = 1;
+    }
+    return &varlink_type;
+  }
+  
+  /* Create a variable linking object for use later */
+  SWIGINTERN PyObject *
+  SWIG_Python_newvarlink(void) {
+    swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
+    if (result) {
+      result->vars = 0;
+    }
+    return ((PyObject*) result);
+  }
+  
+  SWIGINTERN void 
+  SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
+    swig_varlinkobject *v = (swig_varlinkobject *) p;
+    swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
+    if (gv) {
+      size_t size = strlen(name)+1;
+      gv->name = (char *)malloc(size);
+      if (gv->name) {
+        strncpy(gv->name,name,size);
+        gv->get_attr = get_attr;
+        gv->set_attr = set_attr;
+        gv->next = v->vars;
+      }
+    }
+    v->vars = gv;
+  }
+  
+  SWIGINTERN PyObject *
+  SWIG_globals(void) {
+    static PyObject *_SWIG_globals = 0; 
+    if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();  
+    return _SWIG_globals;
+  }
+  
+  /* -----------------------------------------------------------------------------
+   * constants/methods manipulation
+   * ----------------------------------------------------------------------------- */
+  
+  /* Install Constants */
+  SWIGINTERN void
+  SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
+    PyObject *obj = 0;
+    size_t i;
+    for (i = 0; constants[i].type; ++i) {
+      switch(constants[i].type) {
+      case SWIG_PY_POINTER:
+        obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
+        break;
+      case SWIG_PY_BINARY:
+        obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
+        break;
+      default:
+        obj = 0;
+        break;
+      }
+      if (obj) {
+        PyDict_SetItemString(d, constants[i].name, obj);
+        Py_DECREF(obj);
+      }
+    }
+  }
+  
+  /* -----------------------------------------------------------------------------*/
+  /* Fix SwigMethods to carry the callback ptrs when needed */
+  /* -----------------------------------------------------------------------------*/
+  
+  SWIGINTERN void
+  SWIG_Python_FixMethods(PyMethodDef *methods,
+    swig_const_info *const_table,
+    swig_type_info **types,
+    swig_type_info **types_initial) {
+    size_t i;
+    for (i = 0; methods[i].ml_name; ++i) {
+      const char *c = methods[i].ml_doc;
+      if (c && (c = strstr(c, "swig_ptr: "))) {
+        int j;
+        swig_const_info *ci = 0;
+        const char *name = c + 10;
+        for (j = 0; const_table[j].type; ++j) {
+          if (strncmp(const_table[j].name, name, 
+              strlen(const_table[j].name)) == 0) {
+            ci = &(const_table[j]);
+            break;
+          }
+        }
+        if (ci) {
+          size_t shift = (ci->ptype) - types;
+          swig_type_info *ty = types_initial[shift];
+          size_t ldoc = (c - methods[i].ml_doc);
+          size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
+          char *ndoc = (char*)malloc(ldoc + lptr + 10);
+          if (ndoc) {
+            char *buff = ndoc;
+            void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
+            if (ptr) {
+              strncpy(buff, methods[i].ml_doc, ldoc);
+              buff += ldoc;
+              strncpy(buff, "swig_ptr: ", 10);
+              buff += 10;
+              SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
+              methods[i].ml_doc = ndoc;
+            }
+          }
+        }
+      }
+    }
+  } 
+  
+#ifdef __cplusplus
+}
+#endif
+
+/* -----------------------------------------------------------------------------*
+ *  Partial Init method
+ * -----------------------------------------------------------------------------*/
+
+#ifdef __cplusplus
+extern "C"
+#endif
+
+SWIGEXPORT 
+#if PY_VERSION_HEX >= 0x03000000
+PyObject*
+#else
+void
+#endif
+SWIG_init(void) {
+  PyObject *m, *d;  
+#if PY_VERSION_HEX >= 0x03000000
+  static struct PyModuleDef SWIG_module = {
+    PyModuleDef_HEAD_INIT,
+    (char *) SWIG_name,
+    NULL,
+    -1,
+    SwigMethods,
+    NULL,
+    NULL,
+    NULL,
+    NULL
+  };
+#endif
+  
+  /* Fix SwigMethods to carry the callback ptrs when needed */
+  SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
+  
+#if PY_VERSION_HEX >= 0x03000000
+  m = PyModule_Create(&SWIG_module);
+#else
+  m = Py_InitModule((char *) SWIG_name, SwigMethods);
+#endif
+  d = PyModule_GetDict(m);
+  
+  SWIG_InitializeModule(0);
+  SWIG_InstallConstants(d,swig_const_table);
+  
+  
+  SWIG_Python_SetConstant(d, "ATTR_a",SWIG_FromCharPtr("Execution_Time"));
+  SWIG_Python_SetConstant(d, "ATTR_c",SWIG_FromCharPtr("Checkpoint"));
+  SWIG_Python_SetConstant(d, "ATTR_e",SWIG_FromCharPtr("Error_Path"));
+  SWIG_Python_SetConstant(d, "ATTR_f",SWIG_FromCharPtr("fault_tolerant"));
+  SWIG_Python_SetConstant(d, "ATTR_g",SWIG_FromCharPtr("group_list"));
+  SWIG_Python_SetConstant(d, "ATTR_h",SWIG_FromCharPtr("Hold_Types"));
+  SWIG_Python_SetConstant(d, "ATTR_j",SWIG_FromCharPtr("Join_Path"));
+  SWIG_Python_SetConstant(d, "ATTR_k",SWIG_FromCharPtr("Keep_Files"));
+  SWIG_Python_SetConstant(d, "ATTR_l",SWIG_FromCharPtr("Resource_List"));
+  SWIG_Python_SetConstant(d, "ATTR_m",SWIG_FromCharPtr("Mail_Points"));
+  SWIG_Python_SetConstant(d, "ATTR_o",SWIG_FromCharPtr("Output_Path"));
+  SWIG_Python_SetConstant(d, "ATTR_p",SWIG_FromCharPtr("Priority"));
+  SWIG_Python_SetConstant(d, "ATTR_q",SWIG_FromCharPtr("destination"));
+  SWIG_Python_SetConstant(d, "ATTR_r",SWIG_FromCharPtr("Rerunable"));
+  SWIG_Python_SetConstant(d, "ATTR_t",SWIG_FromCharPtr("job_array_request"));
+  SWIG_Python_SetConstant(d, "ATTR_array_id",SWIG_FromCharPtr("job_array_id"));
+  SWIG_Python_SetConstant(d, "ATTR_u",SWIG_FromCharPtr("User_List"));
+  SWIG_Python_SetConstant(d, "ATTR_v",SWIG_FromCharPtr("Variable_List"));
+  SWIG_Python_SetConstant(d, "ATTR_A",SWIG_FromCharPtr("Account_Name"));
+  SWIG_Python_SetConstant(d, "ATTR_M",SWIG_FromCharPtr("Mail_Users"));
+  SWIG_Python_SetConstant(d, "ATTR_N",SWIG_FromCharPtr("Job_Name"));
+  SWIG_Python_SetConstant(d, "ATTR_S",SWIG_FromCharPtr("Shell_Path_List"));
+  SWIG_Python_SetConstant(d, "ATTR_depend",SWIG_FromCharPtr("depend"));
+  SWIG_Python_SetConstant(d, "ATTR_inter",SWIG_FromCharPtr("interactive"));
+  SWIG_Python_SetConstant(d, "ATTR_stagein",SWIG_FromCharPtr("stagein"));
+  SWIG_Python_SetConstant(d, "ATTR_stageout",SWIG_FromCharPtr("stageout"));
+  SWIG_Python_SetConstant(d, "ATTR_jobtype",SWIG_FromCharPtr("jobtype"));
+  SWIG_Python_SetConstant(d, "ATTR_ctime",SWIG_FromCharPtr("ctime"));
+  SWIG_Python_SetConstant(d, "ATTR_exechost",SWIG_FromCharPtr("exec_host"));
+  SWIG_Python_SetConstant(d, "ATTR_mtime",SWIG_FromCharPtr("mtime"));
+  SWIG_Python_SetConstant(d, "ATTR_qtime",SWIG_FromCharPtr("qtime"));
+  SWIG_Python_SetConstant(d, "ATTR_session",SWIG_FromCharPtr("session_id"));
+  SWIG_Python_SetConstant(d, "ATTR_euser",SWIG_FromCharPtr("euser"));
+  SWIG_Python_SetConstant(d, "ATTR_egroup",SWIG_FromCharPtr("egroup"));
+  SWIG_Python_SetConstant(d, "ATTR_hashname",SWIG_FromCharPtr("hashname"));
+  SWIG_Python_SetConstant(d, "ATTR_hopcount",SWIG_FromCharPtr("hop_count"));
+  SWIG_Python_SetConstant(d, "ATTR_security",SWIG_FromCharPtr("security"));
+  SWIG_Python_SetConstant(d, "ATTR_sched_hint",SWIG_FromCharPtr("sched_hint"));
+  SWIG_Python_SetConstant(d, "ATTR_substate",SWIG_FromCharPtr("substate"));
+  SWIG_Python_SetConstant(d, "ATTR_name",SWIG_FromCharPtr("Job_Name"));
+  SWIG_Python_SetConstant(d, "ATTR_owner",SWIG_FromCharPtr("Job_Owner"));
+  SWIG_Python_SetConstant(d, "ATTR_used",SWIG_FromCharPtr("resources_used"));
+  SWIG_Python_SetConstant(d, "ATTR_state",SWIG_FromCharPtr("job_state"));
+  SWIG_Python_SetConstant(d, "ATTR_queue",SWIG_FromCharPtr("queue"));
+  SWIG_Python_SetConstant(d, "ATTR_server",SWIG_FromCharPtr("server"));
+  SWIG_Python_SetConstant(d, "ATTR_maxrun",SWIG_FromCharPtr("max_running"));
+  SWIG_Python_SetConstant(d, "ATTR_maxreport",SWIG_FromCharPtr("max_report"));
+  SWIG_Python_SetConstant(d, "ATTR_total",SWIG_FromCharPtr("total_jobs"));
+  SWIG_Python_SetConstant(d, "ATTR_comment",SWIG_FromCharPtr("comment"));
+  SWIG_Python_SetConstant(d, "ATTR_cookie",SWIG_FromCharPtr("cookie"));
+  SWIG_Python_SetConstant(d, "ATTR_qrank",SWIG_FromCharPtr("queue_rank"));
+  SWIG_Python_SetConstant(d, "ATTR_altid",SWIG_FromCharPtr("alt_id"));
+  SWIG_Python_SetConstant(d, "ATTR_etime",SWIG_FromCharPtr("etime"));
+  SWIG_Python_SetConstant(d, "ATTR_exitstat",SWIG_FromCharPtr("exit_status"));
+  SWIG_Python_SetConstant(d, "ATTR_forwardx11",SWIG_FromCharPtr("forward_x11"));
+  SWIG_Python_SetConstant(d, "ATTR_submit_args",SWIG_FromCharPtr("submit_args"));
+  SWIG_Python_SetConstant(d, "ATTR_tokens",SWIG_FromCharPtr("tokens"));
+  SWIG_Python_SetConstant(d, "ATTR_netcounter",SWIG_FromCharPtr("net_counter"));
+  SWIG_Python_SetConstant(d, "ATTR_umask",SWIG_FromCharPtr("umask"));
+  SWIG_Python_SetConstant(d, "ATTR_start_time",SWIG_FromCharPtr("start_time"));
+  SWIG_Python_SetConstant(d, "ATTR_start_count",SWIG_FromCharPtr("start_count"));
+  SWIG_Python_SetConstant(d, "ATTR_checkpoint_dir",SWIG_FromCharPtr("checkpoint_dir"));
+  SWIG_Python_SetConstant(d, "ATTR_checkpoint_name",SWIG_FromCharPtr("checkpoint_name"));
+  SWIG_Python_SetConstant(d, "ATTR_checkpoint_time",SWIG_FromCharPtr("checkpoint_time"));
+  SWIG_Python_SetConstant(d, "ATTR_checkpoint_restart_status",SWIG_FromCharPtr("checkpoint_restart_status"));
+  SWIG_Python_SetConstant(d, "ATTR_restart_name",SWIG_FromCharPtr("restart_name"));
+  SWIG_Python_SetConstant(d, "ATTR_comp_time",SWIG_FromCharPtr("comp_time"));
+  SWIG_Python_SetConstant(d, "ATTR_reported",SWIG_FromCharPtr("reported"));
+  SWIG_Python_SetConstant(d, "ATTR_intcmd",SWIG_FromCharPtr("inter_cmd"));
+  SWIG_Python_SetConstant(d, "ATTR_aclgren",SWIG_FromCharPtr("acl_group_enable"));
+  SWIG_Python_SetConstant(d, "ATTR_aclgroup",SWIG_FromCharPtr("acl_groups"));
+  SWIG_Python_SetConstant(d, "ATTR_aclhten",SWIG_FromCharPtr("acl_host_enable"));
+  SWIG_Python_SetConstant(d, "ATTR_aclhost",SWIG_FromCharPtr("acl_hosts"));
+  SWIG_Python_SetConstant(d, "ATTR_acluren",SWIG_FromCharPtr("acl_user_enable"));
+  SWIG_Python_SetConstant(d, "ATTR_acluser",SWIG_FromCharPtr("acl_users"));
+  SWIG_Python_SetConstant(d, "ATTR_altrouter",SWIG_FromCharPtr("alt_router"));
+  SWIG_Python_SetConstant(d, "ATTR_checkpoint_min",SWIG_FromCharPtr("checkpoint_min"));
+  SWIG_Python_SetConstant(d, "ATTR_enable",SWIG_FromCharPtr("enabled"));
+  SWIG_Python_SetConstant(d, "ATTR_fromroute",SWIG_FromCharPtr("from_route_only"));
+  SWIG_Python_SetConstant(d, "ATTR_hostlist",SWIG_FromCharPtr("hostlist"));
+  SWIG_Python_SetConstant(d, "ATTR_killdelay",SWIG_FromCharPtr("kill_delay"));
+  SWIG_Python_SetConstant(d, "ATTR_maxgrprun",SWIG_FromCharPtr("max_group_run"));
+  SWIG_Python_SetConstant(d, "ATTR_maxque",SWIG_FromCharPtr("max_queuable"));
+  SWIG_Python_SetConstant(d, "ATTR_maxuserque",SWIG_FromCharPtr("max_user_queuable"));
+  SWIG_Python_SetConstant(d, "ATTR_maxuserrun",SWIG_FromCharPtr("max_user_run"));
+  SWIG_Python_SetConstant(d, "ATTR_qtype",SWIG_FromCharPtr("queue_type"));
+  SWIG_Python_SetConstant(d, "ATTR_rescassn",SWIG_FromCharPtr("resources_assigned"));
+  SWIG_Python_SetConstant(d, "ATTR_rescdflt",SWIG_FromCharPtr("resources_default"));
+  SWIG_Python_SetConstant(d, "ATTR_rescmax",SWIG_FromCharPtr("resources_max"));
+  SWIG_Python_SetConstant(d, "ATTR_rescmin",SWIG_FromCharPtr("resources_min"));
+  SWIG_Python_SetConstant(d, "ATTR_rerunnable",SWIG_FromCharPtr("restartable"));
+  SWIG_Python_SetConstant(d, "ATTR_rndzretry",SWIG_FromCharPtr("rendezvous_retry"));
+  SWIG_Python_SetConstant(d, "ATTR_routedest",SWIG_FromCharPtr("route_destinations"));
+  SWIG_Python_SetConstant(d, "ATTR_routeheld",SWIG_FromCharPtr("route_held_jobs"));
+  SWIG_Python_SetConstant(d, "ATTR_routewait",SWIG_FromCharPtr("route_waiting_jobs"));
+  SWIG_Python_SetConstant(d, "ATTR_routeretry",SWIG_FromCharPtr("route_retry_time"));
+  SWIG_Python_SetConstant(d, "ATTR_routelife",SWIG_FromCharPtr("route_lifetime"));
+  SWIG_Python_SetConstant(d, "ATTR_rsvexpdt",SWIG_FromCharPtr("reserved_expedite"));
+  SWIG_Python_SetConstant(d, "ATTR_rsvsync",SWIG_FromCharPtr("reserved_sync"));
+  SWIG_Python_SetConstant(d, "ATTR_start",SWIG_FromCharPtr("started"));
+  SWIG_Python_SetConstant(d, "ATTR_count",SWIG_FromCharPtr("state_count"));
+  SWIG_Python_SetConstant(d, "ATTR_number",SWIG_FromCharPtr("number_jobs"));
+  SWIG_Python_SetConstant(d, "ATTR_acllogic",SWIG_FromCharPtr("acl_logic_or"));
+  SWIG_Python_SetConstant(d, "ATTR_aclgrpslpy",SWIG_FromCharPtr("acl_group_sloppy"));
+  SWIG_Python_SetConstant(d, "ATTR_keepcompleted",SWIG_FromCharPtr("keep_completed"));
+  SWIG_Python_SetConstant(d, "ATTR_disallowedtypes",SWIG_FromCharPtr("disallowed_types"));
+  SWIG_Python_SetConstant(d, "ATTR_is_transit",SWIG_FromCharPtr("is_transit"));
+  SWIG_Python_SetConstant(d, "ATTR_aclroot",SWIG_FromCharPtr("acl_roots"));
+  SWIG_Python_SetConstant(d, "ATTR_managers",SWIG_FromCharPtr("managers"));
+  SWIG_Python_SetConstant(d, "ATTR_dfltque",SWIG_FromCharPtr("default_queue"));
+  SWIG_Python_SetConstant(d, "ATTR_dispsvrsuffix",SWIG_FromCharPtr("display_job_server_suffix"));
+  SWIG_Python_SetConstant(d, "ATTR_jobsuffixalias",SWIG_FromCharPtr("job_suffix_alias"));
+  SWIG_Python_SetConstant(d, "ATTR_defnode",SWIG_FromCharPtr("default_node"));
+  SWIG_Python_SetConstant(d, "ATTR_locsvrs",SWIG_FromCharPtr("location_servers"));
+  SWIG_Python_SetConstant(d, "ATTR_logevents",SWIG_FromCharPtr("log_events"));
+  SWIG_Python_SetConstant(d, "ATTR_logfile",SWIG_FromCharPtr("log_file"));
+  SWIG_Python_SetConstant(d, "ATTR_loglevel",SWIG_FromCharPtr("log_level"));
+  SWIG_Python_SetConstant(d, "ATTR_mailfrom",SWIG_FromCharPtr("mail_from"));
+  SWIG_Python_SetConstant(d, "ATTR_nodepack",SWIG_FromCharPtr("node_pack"));
+  SWIG_Python_SetConstant(d, "ATTR_nodesuffix",SWIG_FromCharPtr("node_suffix"));
+  SWIG_Python_SetConstant(d, "ATTR_operators",SWIG_FromCharPtr("operators"));
+  SWIG_Python_SetConstant(d, "ATTR_queryother",SWIG_FromCharPtr("query_other_jobs"));
+  SWIG_Python_SetConstant(d, "ATTR_resccost",SWIG_FromCharPtr("resources_cost"));
+  SWIG_Python_SetConstant(d, "ATTR_rescavail",SWIG_FromCharPtr("resources_available"));
+  SWIG_Python_SetConstant(d, "ATTR_schedit",SWIG_FromCharPtr("scheduler_iteration"));
+  SWIG_Python_SetConstant(d, "ATTR_scheduling",SWIG_FromCharPtr("scheduling"));
+  SWIG_Python_SetConstant(d, "ATTR_status",SWIG_FromCharPtr("server_state"));
+  SWIG_Python_SetConstant(d, "ATTR_syscost",SWIG_FromCharPtr("system_cost"));
+  SWIG_Python_SetConstant(d, "ATTR_pingrate",SWIG_FromCharPtr("node_ping_rate"));
+  SWIG_Python_SetConstant(d, "ATTR_ndchkrate",SWIG_FromCharPtr("node_check_rate"));
+  SWIG_Python_SetConstant(d, "ATTR_tcptimeout",SWIG_FromCharPtr("tcp_timeout"));
+  SWIG_Python_SetConstant(d, "ATTR_jobstatrate",SWIG_FromCharPtr("job_stat_rate"));
+  SWIG_Python_SetConstant(d, "ATTR_polljobs",SWIG_FromCharPtr("poll_jobs"));
+  SWIG_Python_SetConstant(d, "ATTR_downonerror",SWIG_FromCharPtr("down_on_error"));
+  SWIG_Python_SetConstant(d, "ATTR_disableserveridcheck",SWIG_FromCharPtr("disable_server_id_check"));
+  SWIG_Python_SetConstant(d, "ATTR_jobnanny",SWIG_FromCharPtr("job_nanny"));
+  SWIG_Python_SetConstant(d, "ATTR_ownerpurge",SWIG_FromCharPtr("owner_purge"));
+  SWIG_Python_SetConstant(d, "ATTR_qcqlimits",SWIG_FromCharPtr("queue_centric_limits"));
+  SWIG_Python_SetConstant(d, "ATTR_momjobsync",SWIG_FromCharPtr("mom_job_sync"));
+  SWIG_Python_SetConstant(d, "ATTR_maildomain",SWIG_FromCharPtr("mail_domain"));
+  SWIG_Python_SetConstant(d, "ATTR_pbsversion",SWIG_FromCharPtr("pbs_version"));
+  SWIG_Python_SetConstant(d, "ATTR_submithosts",SWIG_FromCharPtr("submit_hosts"));
+  SWIG_Python_SetConstant(d, "ATTR_allownodesubmit",SWIG_FromCharPtr("allow_node_submit"));
+  SWIG_Python_SetConstant(d, "ATTR_allowproxyuser",SWIG_FromCharPtr("allow_proxy_user"));
+  SWIG_Python_SetConstant(d, "ATTR_autonodenp",SWIG_FromCharPtr("auto_node_np"));
+  SWIG_Python_SetConstant(d, "ATTR_servername",SWIG_FromCharPtr("server_name"));
+  SWIG_Python_SetConstant(d, "ATTR_logfilemaxsize",SWIG_FromCharPtr("log_file_max_size"));
+  SWIG_Python_SetConstant(d, "ATTR_logfilerolldepth",SWIG_FromCharPtr("log_file_roll_depth"));
+  SWIG_Python_SetConstant(d, "ATTR_logkeepdays",SWIG_FromCharPtr("log_keep_days"));
+  SWIG_Python_SetConstant(d, "ATTR_nextjobnum",SWIG_FromCharPtr("next_job_number"));
+  SWIG_Python_SetConstant(d, "ATTR_extraresc",SWIG_FromCharPtr("extra_resc"));
+  SWIG_Python_SetConstant(d, "ATTR_schedversion",SWIG_FromCharPtr("sched_version"));
+  SWIG_Python_SetConstant(d, "ATTR_acctkeepdays",SWIG_FromCharPtr("accounting_keep_days"));
+  SWIG_Python_SetConstant(d, "ATTR_lockfile",SWIG_FromCharPtr("lock_file"));
+  SWIG_Python_SetConstant(d, "ATTR_credentiallifetime",SWIG_FromCharPtr("credential_lifetime"));
+  SWIG_Python_SetConstant(d, "ATTR_jobmustreport",SWIG_FromCharPtr("job_must_report"));
+  SWIG_Python_SetConstant(d, "ATTR_LockfileUpdateTime",SWIG_FromCharPtr("lock_file_update_time"));
+  SWIG_Python_SetConstant(d, "ATTR_LockfileCheckTime",SWIG_FromCharPtr("lock_file_check_time"));
+  SWIG_Python_SetConstant(d, "ATTR_npdefault",SWIG_FromCharPtr("np_default"));
+  SWIG_Python_SetConstant(d, "ATTR_jobstarttimeout",SWIG_FromCharPtr("job_start_timeout"));
+  SWIG_Python_SetConstant(d, "ATTR_NODE_state",SWIG_FromCharPtr("state"));
+  SWIG_Python_SetConstant(d, "ATTR_NODE_np",SWIG_FromCharPtr("np"));
+  SWIG_Python_SetConstant(d, "ATTR_NODE_properties",SWIG_FromCharPtr("properties"));
+  SWIG_Python_SetConstant(d, "ATTR_NODE_ntype",SWIG_FromCharPtr("ntype"));
+  SWIG_Python_SetConstant(d, "ATTR_NODE_jobs",SWIG_FromCharPtr("jobs"));
+  SWIG_Python_SetConstant(d, "ATTR_NODE_status",SWIG_FromCharPtr("status"));
+  SWIG_Python_SetConstant(d, "ATTR_NODE_note",SWIG_FromCharPtr("note"));
+  SWIG_Python_SetConstant(d, "ATTR_mailsubjectfmt",SWIG_FromCharPtr("mail_subject_fmt"));
+  SWIG_Python_SetConstant(d, "ATTR_mailbodyfmt",SWIG_FromCharPtr("mail_body_fmt"));
+  SWIG_Python_SetConstant(d, "CHECKPOINT_UNSPECIFIED",SWIG_FromCharPtr("u"));
+  SWIG_Python_SetConstant(d, "NO_HOLD",SWIG_FromCharPtr("n"));
+  SWIG_Python_SetConstant(d, "NO_JOIN",SWIG_FromCharPtr("n"));
+  SWIG_Python_SetConstant(d, "NO_KEEP",SWIG_FromCharPtr("n"));
+  SWIG_Python_SetConstant(d, "MAIL_AT_ABORT",SWIG_FromCharPtr("a"));
+  SWIG_Python_SetConstant(d, "DELDELAY",SWIG_FromCharPtr("deldelay="));
+  SWIG_Python_SetConstant(d, "DELPURGE",SWIG_FromCharPtr("delpurge="));
+  SWIG_Python_SetConstant(d, "PURGECOMP",SWIG_FromCharPtr("purgecomplete="));
+  SWIG_Python_SetConstant(d, "EXECQUEONLY",SWIG_FromCharPtr("exec_queue_only"));
+  SWIG_Python_SetConstant(d, "RERUNFORCE",SWIG_FromCharPtr("force"));
+  SWIG_Python_SetConstant(d, "USER_HOLD",SWIG_FromCharPtr("u"));
+  SWIG_Python_SetConstant(d, "OTHER_HOLD",SWIG_FromCharPtr("o"));
+  SWIG_Python_SetConstant(d, "SYSTEM_HOLD",SWIG_FromCharPtr("s"));
+  SWIG_Python_SetConstant(d, "ND_free",SWIG_FromCharPtr("free"));
+  SWIG_Python_SetConstant(d, "ND_offline",SWIG_FromCharPtr("offline"));
+  SWIG_Python_SetConstant(d, "ND_down",SWIG_FromCharPtr("down"));
+  SWIG_Python_SetConstant(d, "ND_reserve",SWIG_FromCharPtr("reserve"));
+  SWIG_Python_SetConstant(d, "ND_job_exclusive",SWIG_FromCharPtr("job-exclusive"));
+  SWIG_Python_SetConstant(d, "ND_job_sharing",SWIG_FromCharPtr("job-sharing"));
+  SWIG_Python_SetConstant(d, "ND_busy",SWIG_FromCharPtr("busy"));
+  SWIG_Python_SetConstant(d, "ND_state_unknown",SWIG_FromCharPtr("state-unknown"));
+  SWIG_Python_SetConstant(d, "ND_timeshared",SWIG_FromCharPtr("time-shared"));
+  SWIG_Python_SetConstant(d, "ND_cluster",SWIG_FromCharPtr("cluster"));
+  SWIG_Python_SetConstant(d, "Q_DT_batch",SWIG_FromCharPtr("batch"));
+  SWIG_Python_SetConstant(d, "Q_DT_interactive",SWIG_FromCharPtr("interactive"));
+  SWIG_Python_SetConstant(d, "Q_DT_rerunable",SWIG_FromCharPtr("rerunable"));
+  SWIG_Python_SetConstant(d, "Q_DT_nonrerunable",SWIG_FromCharPtr("nonrerunable"));
+  SWIG_Python_SetConstant(d, "Q_DT_fault_tolerant",SWIG_FromCharPtr("fault_tolerant"));
+  SWIG_Python_SetConstant(d, "Q_DT_fault_intolerant",SWIG_FromCharPtr("fault_intolerant"));
+  SWIG_Python_SetConstant(d, "Q_DT_job_array",SWIG_FromCharPtr("job_array"));
+  SWIG_Python_SetConstant(d, "MAX_ENCODE_BFR",SWIG_From_int((int)(100)));
+  SWIG_Python_SetConstant(d, "MGR_CMD_CREATE",SWIG_From_int((int)(0)));
+  SWIG_Python_SetConstant(d, "MGR_CMD_DELETE",SWIG_From_int((int)(1)));
+  SWIG_Python_SetConstant(d, "MGR_CMD_SET",SWIG_From_int((int)(2)));
+  SWIG_Python_SetConstant(d, "MGR_CMD_UNSET",SWIG_From_int((int)(3)));
+  SWIG_Python_SetConstant(d, "MGR_CMD_LIST",SWIG_From_int((int)(4)));
+  SWIG_Python_SetConstant(d, "MGR_CMD_PRINT",SWIG_From_int((int)(5)));
+  SWIG_Python_SetConstant(d, "MGR_CMD_ACTIVE",SWIG_From_int((int)(6)));
+  SWIG_Python_SetConstant(d, "MGR_OBJ_NONE",SWIG_From_int((int)(-1)));
+  SWIG_Python_SetConstant(d, "MGR_OBJ_SERVER",SWIG_From_int((int)(0)));
+  SWIG_Python_SetConstant(d, "MGR_OBJ_QUEUE",SWIG_From_int((int)(1)));
+  SWIG_Python_SetConstant(d, "MGR_OBJ_JOB",SWIG_From_int((int)(2)));
+  SWIG_Python_SetConstant(d, "MGR_OBJ_NODE",SWIG_From_int((int)(3)));
+  SWIG_Python_SetConstant(d, "MSG_OUT",SWIG_From_int((int)(1)));
+  SWIG_Python_SetConstant(d, "MSG_ERR",SWIG_From_int((int)(2)));
+  SWIG_Python_SetConstant(d, "SHUT_SIG",SWIG_From_int((int)(-1)));
+  SWIG_Python_SetConstant(d, "SHUT_IMMEDIATE",SWIG_From_int((int)(0)));
+  SWIG_Python_SetConstant(d, "SHUT_DELAY",SWIG_From_int((int)(1)));
+  SWIG_Python_SetConstant(d, "SHUT_QUICK",SWIG_From_int((int)(2)));
+  SWIG_Python_SetConstant(d, "SIG_RESUME",SWIG_FromCharPtr("resume"));
+  SWIG_Python_SetConstant(d, "SIG_SUSPEND",SWIG_FromCharPtr("suspend"));
+  SWIG_Python_SetConstant(d, "PBS_MAXHOSTNAME",SWIG_From_int((int)(1024)));
+  SWIG_Python_SetConstant(d, "MAXPATHLEN",SWIG_From_int((int)(1024)));
+  SWIG_Python_SetConstant(d, "MAXNAMLEN",SWIG_From_int((int)(255)));
+  SWIG_Python_SetConstant(d, "MAX_NOTE",SWIG_From_int((int)(256)));
+  SWIG_Python_SetConstant(d, "MAX_NOTE_STR",SWIG_FromCharPtr("256"));
+  SWIG_Python_SetConstant(d, "PBS_MAXUSER",SWIG_From_int((int)(32)));
+  SWIG_Python_SetConstant(d, "PBS_MAXGRPN",SWIG_From_int((int)(16)));
+  SWIG_Python_SetConstant(d, "PBS_MAXQUEUENAME",SWIG_From_int((int)(15)));
+  SWIG_Python_SetConstant(d, "PBS_MAXSERVERNAME",SWIG_From_int((int)(1024)));
+  SWIG_Python_SetConstant(d, "PBS_MAXJOBARRAYLEN",SWIG_From_int((int)(6)));
+  SWIG_Python_SetConstant(d, "PBS_MAXSEQNUM",SWIG_From_int((int)(8)));
+  SWIG_Python_SetConstant(d, "PBS_MAXPORTNUM",SWIG_From_int((int)(5)));
+  SWIG_Python_SetConstant(d, "PBS_MAXJOBARRAY",SWIG_From_int((int)(99999)));
+  SWIG_Python_SetConstant(d, "PBS_MAXSVRJOBID",SWIG_From_int((int)((8+1024+5+6+2))));
+  SWIG_Python_SetConstant(d, "PBS_MAXCLTJOBID",SWIG_From_int((int)(((8+1024+5+6+2) +1024+5+6+2))));
+  SWIG_Python_SetConstant(d, "PBS_MAXDEST",SWIG_From_int((int)(1024)));
+  SWIG_Python_SetConstant(d, "PBS_MAXROUTEDEST",SWIG_From_int((int)((15+1024+5+2))));
+  SWIG_Python_SetConstant(d, "PBS_USE_IFF",SWIG_From_int((int)(1)));
+  SWIG_Python_SetConstant(d, "PBS_INTERACTIVE",SWIG_From_int((int)(1)));
+  SWIG_Python_SetConstant(d, "PBS_TERM_BUF_SZ",SWIG_From_int((int)(80)));
+  SWIG_Python_SetConstant(d, "PBS_TERM_CCA",SWIG_From_int((int)(6)));
+  SWIG_Python_SetConstant(d, "PBS_QS_VERSION_BASE",SWIG_From_int((int)(0x00020300)));
+  SWIG_Python_SetConstant(d, "PBS_QS_VERSION_INT",SWIG_From_int((int)(1)));
+  SWIG_Python_SetConstant(d, "PBS_QS_VERSION",SWIG_From_int((int)((0x00020300+1))));
+  SWIG_Python_SetConstant(d, "PBS_BATCH_SERVICE_NAME",SWIG_FromCharPtr("pbs"));
+  SWIG_Python_SetConstant(d, "PBS_BATCH_SERVICE_PORT",SWIG_From_int((int)(15001)));
+  SWIG_Python_SetConstant(d, "PBS_BATCH_SERVICE_NAME_DIS",SWIG_FromCharPtr("pbs_dis"));
+  SWIG_Python_SetConstant(d, "PBS_BATCH_SERVICE_PORT_DIS",SWIG_From_int((int)(15001)));
+  SWIG_Python_SetConstant(d, "PBS_MOM_SERVICE_NAME",SWIG_FromCharPtr("pbs_mom"));
+  SWIG_Python_SetConstant(d, "PBS_MOM_SERVICE_PORT",SWIG_From_int((int)(15002)));
+  SWIG_Python_SetConstant(d, "PBS_MANAGER_SERVICE_NAME",SWIG_FromCharPtr("pbs_resmon"));
+  SWIG_Python_SetConstant(d, "PBS_MANAGER_SERVICE_PORT",SWIG_From_int((int)(15003)));
+  SWIG_Python_SetConstant(d, "PBS_SCHEDULER_SERVICE_NAME",SWIG_FromCharPtr("pbs_sched"));
+  SWIG_Python_SetConstant(d, "PBS_SCHEDULER_SERVICE_PORT",SWIG_From_int((int)(15004)));
+  SWIG_Python_SetConstant(d, "CHECKPOINTHOLD",SWIG_FromCharPtr("checkpoint_hold"));
+  SWIG_Python_SetConstant(d, "CHECKPOINTCONT",SWIG_FromCharPtr("checkpoint_cont"));
+  SWIG_Python_SetConstant(d, "MOM_DEFAULT_CHECKPOINT_DIR",SWIG_FromCharPtr("$MOMDEFAULTCHECKPOINTDIR$"));
+  SWIG_Python_SetConstant(d, "SET",SWIG_From_int((int)(SET)));
+  SWIG_Python_SetConstant(d, "UNSET",SWIG_From_int((int)(UNSET)));
+  SWIG_Python_SetConstant(d, "INCR",SWIG_From_int((int)(INCR)));
+  SWIG_Python_SetConstant(d, "DECR",SWIG_From_int((int)(DECR)));
+  SWIG_Python_SetConstant(d, "EQ",SWIG_From_int((int)(EQ)));
+  SWIG_Python_SetConstant(d, "NE",SWIG_From_int((int)(NE)));
+  SWIG_Python_SetConstant(d, "GE",SWIG_From_int((int)(GE)));
+  SWIG_Python_SetConstant(d, "GT",SWIG_From_int((int)(GT)));
+  SWIG_Python_SetConstant(d, "LE",SWIG_From_int((int)(LE)));
+  SWIG_Python_SetConstant(d, "LT",SWIG_From_int((int)(LT)));
+  SWIG_Python_SetConstant(d, "DFLT",SWIG_From_int((int)(DFLT)));
+  SWIG_Python_SetConstant(d, "MERGE",SWIG_From_int((int)(MERGE)));
+  PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
+  SWIG_addvarlink(SWIG_globals(),(char*)"pbs_errno",Swig_var_pbs_errno_get, Swig_var_pbs_errno_set);
+  SWIG_addvarlink(SWIG_globals(),(char*)"pbs_server",Swig_var_pbs_server_get, Swig_var_pbs_server_set);
+  SWIG_Python_SetConstant(d, "LOG_BUF_SIZE",SWIG_From_int((int)(16384)));
+  SWIG_Python_SetConstant(d, "LOG_EMERG",SWIG_From_int((int)(1)));
+  SWIG_Python_SetConstant(d, "LOG_ALERT",SWIG_From_int((int)(2)));
+  SWIG_Python_SetConstant(d, "LOG_CRIT",SWIG_From_int((int)(3)));
+  SWIG_Python_SetConstant(d, "LOG_ERR",SWIG_From_int((int)(4)));
+  SWIG_Python_SetConstant(d, "LOG_WARNING",SWIG_From_int((int)(6)));
+  SWIG_Python_SetConstant(d, "LOG_NOTICE",SWIG_From_int((int)(7)));
+  SWIG_Python_SetConstant(d, "LOG_INFO",SWIG_From_int((int)(8)));
+  SWIG_Python_SetConstant(d, "LOG_DEBUG",SWIG_From_int((int)(9)));
+  SWIG_addvarlink(SWIG_globals(),(char*)"log_event_mask",Swig_var_log_event_mask_get, Swig_var_log_event_mask_set);
+  SWIG_addvarlink(SWIG_globals(),(char*)"chk_file_sec_stderr",Swig_var_chk_file_sec_stderr_get, Swig_var_chk_file_sec_stderr_set);
+  SWIG_addvarlink(SWIG_globals(),(char*)"log_buffer",Swig_var_log_buffer_get, Swig_var_log_buffer_set);
+  SWIG_Python_SetConstant(d, "PBSEVENT_ERROR",SWIG_From_int((int)(0x0001)));
+  SWIG_Python_SetConstant(d, "PBSEVENT_SYSTEM",SWIG_From_int((int)(0x0002)));
+  SWIG_Python_SetConstant(d, "PBSEVENT_ADMIN",SWIG_From_int((int)(0x0004)));
+  SWIG_Python_SetConstant(d, "PBSEVENT_JOB",SWIG_From_int((int)(0x0008)));
+  SWIG_Python_SetConstant(d, "PBSEVENT_JOB_USAGE",SWIG_From_int((int)(0x0010)));
+  SWIG_Python_SetConstant(d, "PBSEVENT_SECURITY",SWIG_From_int((int)(0x0020)));
+  SWIG_Python_SetConstant(d, "PBSEVENT_SCHED",SWIG_From_int((int)(0x0040)));
+  SWIG_Python_SetConstant(d, "PBSEVENT_DEBUG",SWIG_From_int((int)(0x0080)));
+  SWIG_Python_SetConstant(d, "PBSEVENT_DEBUG2",SWIG_From_int((int)(0x0100)));
+  SWIG_Python_SetConstant(d, "PBSEVENT_FORCE",SWIG_From_int((int)(0x8000)));
+  SWIG_Python_SetConstant(d, "PBS_EVENTCLASS_SERVER",SWIG_From_int((int)(1)));
+  SWIG_Python_SetConstant(d, "PBS_EVENTCLASS_QUEUE",SWIG_From_int((int)(2)));
+  SWIG_Python_SetConstant(d, "PBS_EVENTCLASS_JOB",SWIG_From_int((int)(3)));
+  SWIG_Python_SetConstant(d, "PBS_EVENTCLASS_REQUEST",SWIG_From_int((int)(4)));
+  SWIG_Python_SetConstant(d, "PBS_EVENTCLASS_FILE",SWIG_From_int((int)(5)));
+  SWIG_Python_SetConstant(d, "PBS_EVENTCLASS_ACCT",SWIG_From_int((int)(6)));
+  SWIG_Python_SetConstant(d, "PBS_EVENTCLASS_NODE",SWIG_From_int((int)(7)));
+  SWIG_Python_SetConstant(d, "PBSEVENT_MASK",SWIG_From_int((int)(0x01ff)));
+  SWIG_Python_SetConstant(d, "MAX_PATH_LEN",SWIG_From_int((int)(1024)));
+  SWIG_Python_SetConstant(d, "SECS_PER_DAY",SWIG_From_int((int)(86400)));
+  SWIG_Python_SetConstant(d, "TRUE",SWIG_From_int((int)(1)));
+  SWIG_Python_SetConstant(d, "FALSE",SWIG_From_int((int)(0)));
+  SWIG_addvarlink(SWIG_globals(),(char*)"msg_daemonname",Swig_var_msg_daemonname_get, Swig_var_msg_daemonname_set);
+#if PY_VERSION_HEX >= 0x03000000
+  return m;
+#else
+  return;
+#endif
+}
+
Index: trunk/src/C/rm.h
===================================================================
--- trunk/src/C/rm.h	(revision 300)
+++ trunk/src/C/rm.h	(revision 300)
@@ -0,0 +1,94 @@
+/*
+*         OpenPBS (Portable Batch System) v2.3 Software License
+*
+* Copyright (c) 1999-2000 Veridian Information Solutions, Inc.
+* All rights reserved.
+*
+* ---------------------------------------------------------------------------
+* For a license to use or redistribute the OpenPBS software under conditions
+* other than those described below, or to purchase support for this software,
+* please contact Veridian Systems, PBS Products Department ("Licensor") at:
+*
+*    www.OpenPBS.org  +1 650 967-4675                  sales@OpenPBS.org
+*                        877 902-4PBS (US toll-free)
+* ---------------------------------------------------------------------------
+*
+* This license covers use of the OpenPBS v2.3 software (the "Software") at
+* your site or location, and, for certain users, redistribution of the
+* Software to other sites and locations.  Use and redistribution of
+* OpenPBS v2.3 in source and binary forms, with or without modification,
+* are permitted provided that all of the following conditions are met.
+* After December 31, 2001, only conditions 3-6 must be met:
+*
+* 1. Commercial and/or non-commercial use of the Software is permitted
+*    provided a current software registration is on file at www.OpenPBS.org.
+*    If use of this software contributes to a publication, product, or
+*    service, proper attribution must be given; see www.OpenPBS.org/credit.html
+*
+* 2. Redistribution in any form is only permitted for non-commercial,
+*    non-profit purposes.  There can be no charge for the Software or any
+*    software incorporating the Software.  Further, there can be no
+*    expectation of revenue generated as a consequence of redistributing
+*    the Software.
+*
+* 3. Any Redistribution of source code must retain the above copyright notice
+*    and the acknowledgment contained in paragraph 6, this list of conditions
+*    and the disclaimer contained in paragraph 7.
+*
+* 4. Any Redistribution in binary form must reproduce the above copyright
+*    notice and the acknowledgment contained in paragraph 6, this list of
+*    conditions and the disclaimer contained in paragraph 7 in the
+*    documentation and/or other materials provided with the distribution.
+*
+* 5. Redistributions in any form must be accompanied by information on how to
+*    obtain complete source code for the OpenPBS software and any
+*    modifications and/or additions to the OpenPBS software.  The source code
+*    must either be included in the distribution or be available for no more
+*    than the cost of distribution plus a nominal fee, and all modifications
+*    and additions to the Software must be freely redistributable by any party
+*    (including Licensor) without restriction.
+*
+* 6. All advertising materials mentioning features or use of the Software must
+*    display the following acknowledgment:
+*
+*     "This product includes software developed by NASA Ames Research Center,
+*     Lawrence Livermore National Laboratory, and Veridian Information
+*     Solutions, Inc.
+*     Visit www.OpenPBS.org for OpenPBS software support,
+*     products, and information."
+*
+* 7. DISCLAIMER OF WARRANTY
+*
+* THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. ANY EXPRESS
+* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT
+* ARE EXPRESSLY DISCLAIMED.
+*
+* IN NO EVENT SHALL VERIDIAN CORPORATION, ITS AFFILIATED COMPANIES, OR THE
+* U.S. GOVERNMENT OR ANY OF ITS AGENCIES BE LIABLE FOR ANY DIRECT OR INDIRECT,
+* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
+* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*
+* This license will be governed by the laws of the Commonwealth of Virginia,
+* without reference to its choice of law rules.
+*/
+
+/*
+** Header file defineing the library calls for connecting
+** to the resource monitor.
+*/
+
+int openrm(char *, unsigned int);
+int closerm(int);
+int downrm(int);
+int configrm(int, char *);
+int addreq(int, char *);
+int allreq(char *);
+char* getreq(int);
+int flushreq(void);
+int activereq(void);
+void fullresp(int);
Index: trunk/src/log.h
===================================================================
--- trunk/src/log.h	(revision 299)
+++ 	(revision )
@@ -1,212 +1,0 @@
-/*
-*         OpenPBS (Portable Batch System) v2.3 Software License
-*
-* Copyright (c) 1999-2000 Veridian Information Solutions, Inc.
-* All rights reserved.
-*
-* ---------------------------------------------------------------------------
-* For a license to use or redistribute the OpenPBS software under conditions
-* other than those described below, or to purchase support for this software,
-* please contact Veridian Systems, PBS Products Department ("Licensor") at:
-*
-*    www.OpenPBS.org  +1 650 967-4675                  sales@OpenPBS.org
-*                        877 902-4PBS (US toll-free)
-* ---------------------------------------------------------------------------
-*
-* This license covers use of the OpenPBS v2.3 software (the "Software") at
-* your site or location, and, for certain users, redistribution of the
-* Software to other sites and locations.  Use and redistribution of
-* OpenPBS v2.3 in source and binary forms, with or without modification,
-* are permitted provided that all of the following conditions are met.
-* After December 31, 2001, only conditions 3-6 must be met:
-*
-* 1. Commercial and/or non-commercial use of the Software is permitted
-*    provided a current software registration is on file at www.OpenPBS.org.
-*    If use of this software contributes to a publication, product, or
-*    service, proper attribution must be given; see www.OpenPBS.org/credit.html
-*
-* 2. Redistribution in any form is only permitted for non-commercial,
-*    non-profit purposes.  There can be no charge for the Software or any
-*    software incorporating the Software.  Further, there can be no
-*    expectation of revenue generated as a consequence of redistributing
-*    the Software.
-*
-* 3. Any Redistribution of source code must retain the above copyright notice
-*    and the acknowledgment contained in paragraph 6, this list of conditions
-*    and the disclaimer contained in paragraph 7.
-*
-* 4. Any Redistribution in binary form must reproduce the above copyright
-*    notice and the acknowledgment contained in paragraph 6, this list of
-*    conditions and the disclaimer contained in paragraph 7 in the
-*    documentation and/or other materials provided with the distribution.
-*
-* 5. Redistributions in any form must be accompanied by information on how to
-*    obtain complete source code for the OpenPBS software and any
-*    modifications and/or additions to the OpenPBS software.  The source code
-*    must either be included in the distribution or be available for no more
-*    than the cost of distribution plus a nominal fee, and all modifications
-*    and additions to the Software must be freely redistributable by any party
-*    (including Licensor) without restriction.
-*
-* 6. All advertising materials mentioning features or use of the Software must
-*    display the following acknowledgment:
-*
-*     "This product includes software developed by NASA Ames Research Center,
-*     Lawrence Livermore National Laboratory, and Veridian Information
-*     Solutions, Inc.
-*     Visit www.OpenPBS.org for OpenPBS software support,
-*     products, and information."
-*
-* 7. DISCLAIMER OF WARRANTY
-*
-* THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. ANY EXPRESS
-* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT
-* ARE EXPRESSLY DISCLAIMED.
-*
-* IN NO EVENT SHALL VERIDIAN CORPORATION, ITS AFFILIATED COMPANIES, OR THE
-* U.S. GOVERNMENT OR ANY OF ITS AGENCIES BE LIABLE FOR ANY DIRECT OR INDIRECT,
-* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
-* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*
-* This license will be governed by the laws of the Commonwealth of Virginia,
-* without reference to its choice of law rules.
-*/
-
-/*
- * include file for error/event logging
- */
-
-#ifndef LOG_H
-#define LOG_H
-
-#define LOG_BUF_SIZE  16384
-
-/* The following macro assist in sharing code between the Server and Mom */
-#define LOG_EVENT log_event
-
-/*
-** Set up a debug print macro.
-*/
-#ifdef NDEBUG
-#define DBPRT(x)
-#else
-#define DBPRT(x) printf x;
-#endif  /* END NDEBUG */
-
-#if SYSLOG
-#include <syslog.h>
-#endif /* SYSLOG */
-
-#if !SYSLOG
-/* define syslog constants that can be used in code regardless of whether we
- * are using syslog or not! */
-
-#ifndef LOG_EMERG
-#define LOG_EMERG 1
-#endif
-
-#ifndef LOG_ALERT
-#define LOG_ALERT 2
-#endif
-
-#ifndef LOG_CRIT
-#define LOG_CRIT 3
-#endif
-
-#ifndef LOG_ERR
-#define LOG_ERR 4 
-#endif
-
-#ifndef LOG_ERR
-#define LOG_ERR 5 
-#endif
-
-#ifndef LOG_WARNING
-#define LOG_WARNING 6
-#endif
-
-#ifndef LOG_NOTICE
-#define LOG_NOTICE 7
-#endif
-
-#ifndef LOG_INFO
-#define LOG_INFO 8
-#endif
-
-#ifndef LOG_DEBUG
-#define LOG_DEBUG 9
-#endif
-#endif /* SYSLOG */
-
-extern long *log_event_mask;
-
-/* set this to non-zero in calling app if errors go to stderr */
-extern int   chk_file_sec_stderr;
-
-
-extern void log_close(int);
-extern void log_err(int, char *, char *);
-extern void log_event(int, int, char *, char *);
-extern int  log_open(char *, char *);
-extern void log_record(int, int, char *, char *);
-extern void log_roll(int);
-extern long log_size(void);
-
-extern char log_buffer[LOG_BUF_SIZE];
-
-extern int  chk_file_sec(char *, int, int, int, int, char *);
-extern int  setup_env(char *);
-
-#ifdef TORQUE_2_4
-extern void log_ext(int,char *,char *,int);
-int log_init(char *, char *);
-extern int  log_remove_old(char *,unsigned long);
-#endif
-
-/* Event types */
-
-#define PBSEVENT_ERROR  0x0001  /* internal errors       */
-#define PBSEVENT_SYSTEM  0x0002  /* system (server) events     */
-#define PBSEVENT_ADMIN  0x0004  /* admin events        */
-#define PBSEVENT_JOB  0x0008  /* job related events       */
-#define PBSEVENT_JOB_USAGE 0x0010  /* End of Job accounting      */
-#define PBSEVENT_SECURITY 0x0020  /* security violation events  */
-#define PBSEVENT_SCHED  0x0040  /* scheduler events       */
-#define PBSEVENT_DEBUG  0x0080  /* common debug messages      */
-#define PBSEVENT_DEBUG2  0x0100  /* less needed debug messages */
-#define PBSEVENT_FORCE  0x8000  /* set to force a messag      */
-
-/* Event Object Classes, see array class_names[] in ../lib/Liblog/pbs_log.c   */
-
-#define PBS_EVENTCLASS_SERVER 1 /* The server itself */
-#define PBS_EVENTCLASS_QUEUE 2 /* Queues  */
-#define PBS_EVENTCLASS_JOB 3 /* Jobs   */
-#define PBS_EVENTCLASS_REQUEST 4 /* Batch Requests */
-#define PBS_EVENTCLASS_FILE 5 /* A Job related File */
-#define PBS_EVENTCLASS_ACCT 6 /* Accounting info */
-#define PBS_EVENTCLASS_NODE 7 /* Nodes           */
-
-/* Logging Masks */
-
-#define PBSEVENT_MASK  0x01ff
-
-/* definition's for pbs_log.c's log_remove_old() function */
-#define MAX_PATH_LEN    1024  /* maximum possible length of any path */
-#define SECS_PER_DAY     86400
-
-#if !defined(TRUE) || !defined(FALSE)
-#define TRUE 1
-#define FALSE 0
-#endif /* !defined(TRUE) || !defined(FALSE) */
-
-/* HvB:
- *   msg_daemonname is extern declared in liblog.a. So define it here
-*/
-char *msg_daemonname = "pbs_python";
-
-#endif /* ifndef LOG_H */
Index: trunk/src/pbs.py
===================================================================
--- trunk/src/pbs.py	(revision 299)
+++ 	(revision )
@@ -1,938 +1,0 @@
-# This file was automatically generated by SWIG (http://www.swig.org).
-# Version 1.3.40
-#
-# Do not make changes to this file unless you know what you are doing--modify
-# the SWIG interface file instead.
-# This file is compatible with both classic and new-style classes.
-
-from sys import version_info
-if version_info >= (2,6,0):
-    def swig_import_helper():
-        from os.path import dirname
-        import imp
-        fp = None
-        try:
-            fp, pathname, description = imp.find_module('_pbs', [dirname(__file__)])
-        except ImportError:
-            import _pbs
-            return _pbs
-        if fp is not None:
-            try:
-                _mod = imp.load_module('_pbs', fp, pathname, description)
-            finally:
-                fp.close()
-            return _mod
-    _pbs = swig_import_helper()
-    del swig_import_helper
-else:
-    import _pbs
-del version_info
-try:
-    _swig_property = property
-except NameError:
-    pass # Python < 2.2 doesn't have 'property'.
-def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
-    if (name == "thisown"): return self.this.own(value)
-    if (name == "this"):
-        if type(value).__name__ == 'SwigPyObject':
-            self.__dict__[name] = value
-            return
-    method = class_type.__swig_setmethods__.get(name,None)
-    if method: return method(self,value)
-    if (not static) or hasattr(self,name):
-        self.__dict__[name] = value
-    else:
-        raise AttributeError("You cannot add attributes to %s" % self)
-
-def _swig_setattr(self,class_type,name,value):
-    return _swig_setattr_nondynamic(self,class_type,name,value,0)
-
-def _swig_getattr(self,class_type,name):
-    if (name == "thisown"): return self.this.own()
-    method = class_type.__swig_getmethods__.get(name,None)
-    if method: return method(self)
-    raise AttributeError(name)
-
-def _swig_repr(self):
-    try: strthis = "proxy of " + self.this.__repr__()
-    except: strthis = ""
-    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
-
-try:
-    _object = object
-    _newclass = 1
-except AttributeError:
-    class _object : pass
-    _newclass = 0
-
-
-
-def new_attrl(*args):
-  return _pbs.new_attrl(*args)
-new_attrl = _pbs.new_attrl
-
-def new_attropl(*args):
-  return _pbs.new_attropl(*args)
-new_attropl = _pbs.new_attropl
-
-def new_batch_status():
-  return _pbs.new_batch_status()
-new_batch_status = _pbs.new_batch_status
-
-def get_error():
-  return _pbs.get_error()
-get_error = _pbs.get_error
-ATTR_a = _pbs.ATTR_a
-ATTR_c = _pbs.ATTR_c
-ATTR_e = _pbs.ATTR_e
-ATTR_f = _pbs.ATTR_f
-ATTR_g = _pbs.ATTR_g
-ATTR_h = _pbs.ATTR_h
-ATTR_j = _pbs.ATTR_j
-ATTR_k = _pbs.ATTR_k
-ATTR_l = _pbs.ATTR_l
-ATTR_m = _pbs.ATTR_m
-ATTR_o = _pbs.ATTR_o
-ATTR_p = _pbs.ATTR_p
-ATTR_q = _pbs.ATTR_q
-ATTR_r = _pbs.ATTR_r
-ATTR_t = _pbs.ATTR_t
-ATTR_array_id = _pbs.ATTR_array_id
-ATTR_u = _pbs.ATTR_u
-ATTR_v = _pbs.ATTR_v
-ATTR_A = _pbs.ATTR_A
-ATTR_M = _pbs.ATTR_M
-ATTR_N = _pbs.ATTR_N
-ATTR_S = _pbs.ATTR_S
-ATTR_depend = _pbs.ATTR_depend
-ATTR_inter = _pbs.ATTR_inter
-ATTR_stagein = _pbs.ATTR_stagein
-ATTR_stageout = _pbs.ATTR_stageout
-ATTR_jobtype = _pbs.ATTR_jobtype
-ATTR_ctime = _pbs.ATTR_ctime
-ATTR_exechost = _pbs.ATTR_exechost
-ATTR_mtime = _pbs.ATTR_mtime
-ATTR_qtime = _pbs.ATTR_qtime
-ATTR_session = _pbs.ATTR_session
-ATTR_euser = _pbs.ATTR_euser
-ATTR_egroup = _pbs.ATTR_egroup
-ATTR_hashname = _pbs.ATTR_hashname
-ATTR_hopcount = _pbs.ATTR_hopcount
-ATTR_security = _pbs.ATTR_security
-ATTR_sched_hint = _pbs.ATTR_sched_hint
-ATTR_substate = _pbs.ATTR_substate
-ATTR_name = _pbs.ATTR_name
-ATTR_owner = _pbs.ATTR_owner
-ATTR_used = _pbs.ATTR_used
-ATTR_state = _pbs.ATTR_state
-ATTR_queue = _pbs.ATTR_queue
-ATTR_server = _pbs.ATTR_server
-ATTR_maxrun = _pbs.ATTR_maxrun
-ATTR_maxreport = _pbs.ATTR_maxreport
-ATTR_total = _pbs.ATTR_total
-ATTR_comment = _pbs.ATTR_comment
-ATTR_cookie = _pbs.ATTR_cookie
-ATTR_qrank = _pbs.ATTR_qrank
-ATTR_altid = _pbs.ATTR_altid
-ATTR_etime = _pbs.ATTR_etime
-ATTR_exitstat = _pbs.ATTR_exitstat
-ATTR_forwardx11 = _pbs.ATTR_forwardx11
-ATTR_submit_args = _pbs.ATTR_submit_args
-ATTR_tokens = _pbs.ATTR_tokens
-ATTR_netcounter = _pbs.ATTR_netcounter
-ATTR_umask = _pbs.ATTR_umask
-ATTR_start_time = _pbs.ATTR_start_time
-ATTR_start_count = _pbs.ATTR_start_count
-ATTR_checkpoint_dir = _pbs.ATTR_checkpoint_dir
-ATTR_checkpoint_name = _pbs.ATTR_checkpoint_name
-ATTR_checkpoint_time = _pbs.ATTR_checkpoint_time
-ATTR_checkpoint_restart_status = _pbs.ATTR_checkpoint_restart_status
-ATTR_restart_name = _pbs.ATTR_restart_name
-ATTR_comp_time = _pbs.ATTR_comp_time
-ATTR_reported = _pbs.ATTR_reported
-ATTR_intcmd = _pbs.ATTR_intcmd
-ATTR_aclgren = _pbs.ATTR_aclgren
-ATTR_aclgroup = _pbs.ATTR_aclgroup
-ATTR_aclhten = _pbs.ATTR_aclhten
-ATTR_aclhost = _pbs.ATTR_aclhost
-ATTR_acluren = _pbs.ATTR_acluren
-ATTR_acluser = _pbs.ATTR_acluser
-ATTR_altrouter = _pbs.ATTR_altrouter
-ATTR_checkpoint_min = _pbs.ATTR_checkpoint_min
-ATTR_enable = _pbs.ATTR_enable
-ATTR_fromroute = _pbs.ATTR_fromroute
-ATTR_hostlist = _pbs.ATTR_hostlist
-ATTR_killdelay = _pbs.ATTR_killdelay
-ATTR_maxgrprun = _pbs.ATTR_maxgrprun
-ATTR_maxque = _pbs.ATTR_maxque
-ATTR_maxuserque = _pbs.ATTR_maxuserque
-ATTR_maxuserrun = _pbs.ATTR_maxuserrun
-ATTR_qtype = _pbs.ATTR_qtype
-ATTR_rescassn = _pbs.ATTR_rescassn
-ATTR_rescdflt = _pbs.ATTR_rescdflt
-ATTR_rescmax = _pbs.ATTR_rescmax
-ATTR_rescmin = _pbs.ATTR_rescmin
-ATTR_rerunnable = _pbs.ATTR_rerunnable
-ATTR_rndzretry = _pbs.ATTR_rndzretry
-ATTR_routedest = _pbs.ATTR_routedest
-ATTR_routeheld = _pbs.ATTR_routeheld
-ATTR_routewait = _pbs.ATTR_routewait
-ATTR_routeretry = _pbs.ATTR_routeretry
-ATTR_routelife = _pbs.ATTR_routelife
-ATTR_rsvexpdt = _pbs.ATTR_rsvexpdt
-ATTR_rsvsync = _pbs.ATTR_rsvsync
-ATTR_start = _pbs.ATTR_start
-ATTR_count = _pbs.ATTR_count
-ATTR_number = _pbs.ATTR_number
-ATTR_acllogic = _pbs.ATTR_acllogic
-ATTR_aclgrpslpy = _pbs.ATTR_aclgrpslpy
-ATTR_keepcompleted = _pbs.ATTR_keepcompleted
-ATTR_disallowedtypes = _pbs.ATTR_disallowedtypes
-ATTR_is_transit = _pbs.ATTR_is_transit
-ATTR_aclroot = _pbs.ATTR_aclroot
-ATTR_managers = _pbs.ATTR_managers
-ATTR_dfltque = _pbs.ATTR_dfltque
-ATTR_dispsvrsuffix = _pbs.ATTR_dispsvrsuffix
-ATTR_jobsuffixalias = _pbs.ATTR_jobsuffixalias
-ATTR_defnode = _pbs.ATTR_defnode
-ATTR_locsvrs = _pbs.ATTR_locsvrs
-ATTR_logevents = _pbs.ATTR_logevents
-ATTR_logfile = _pbs.ATTR_logfile
-ATTR_loglevel = _pbs.ATTR_loglevel
-ATTR_mailfrom = _pbs.ATTR_mailfrom
-ATTR_nodepack = _pbs.ATTR_nodepack
-ATTR_nodesuffix = _pbs.ATTR_nodesuffix
-ATTR_operators = _pbs.ATTR_operators
-ATTR_queryother = _pbs.ATTR_queryother
-ATTR_resccost = _pbs.ATTR_resccost
-ATTR_rescavail = _pbs.ATTR_rescavail
-ATTR_schedit = _pbs.ATTR_schedit
-ATTR_scheduling = _pbs.ATTR_scheduling
-ATTR_status = _pbs.ATTR_status
-ATTR_syscost = _pbs.ATTR_syscost
-ATTR_pingrate = _pbs.ATTR_pingrate
-ATTR_ndchkrate = _pbs.ATTR_ndchkrate
-ATTR_tcptimeout = _pbs.ATTR_tcptimeout
-ATTR_jobstatrate = _pbs.ATTR_jobstatrate
-ATTR_polljobs = _pbs.ATTR_polljobs
-ATTR_downonerror = _pbs.ATTR_downonerror
-ATTR_disableserveridcheck = _pbs.ATTR_disableserveridcheck
-ATTR_jobnanny = _pbs.ATTR_jobnanny
-ATTR_ownerpurge = _pbs.ATTR_ownerpurge
-ATTR_qcqlimits = _pbs.ATTR_qcqlimits
-ATTR_momjobsync = _pbs.ATTR_momjobsync
-ATTR_maildomain = _pbs.ATTR_maildomain
-ATTR_pbsversion = _pbs.ATTR_pbsversion
-ATTR_submithosts = _pbs.ATTR_submithosts
-ATTR_allownodesubmit = _pbs.ATTR_allownodesubmit
-ATTR_allowproxyuser = _pbs.ATTR_allowproxyuser
-ATTR_autonodenp = _pbs.ATTR_autonodenp
-ATTR_servername = _pbs.ATTR_servername
-ATTR_logfilemaxsize = _pbs.ATTR_logfilemaxsize
-ATTR_logfilerolldepth = _pbs.ATTR_logfilerolldepth
-ATTR_logkeepdays = _pbs.ATTR_logkeepdays
-ATTR_nextjobnum = _pbs.ATTR_nextjobnum
-ATTR_extraresc = _pbs.ATTR_extraresc
-ATTR_schedversion = _pbs.ATTR_schedversion
-ATTR_acctkeepdays = _pbs.ATTR_acctkeepdays
-ATTR_lockfile = _pbs.ATTR_lockfile
-ATTR_credentiallifetime = _pbs.ATTR_credentiallifetime
-ATTR_jobmustreport = _pbs.ATTR_jobmustreport
-ATTR_LockfileUpdateTime = _pbs.ATTR_LockfileUpdateTime
-ATTR_LockfileCheckTime = _pbs.ATTR_LockfileCheckTime
-ATTR_npdefault = _pbs.ATTR_npdefault
-ATTR_jobstarttimeout = _pbs.ATTR_jobstarttimeout
-ATTR_NODE_state = _pbs.ATTR_NODE_state
-ATTR_NODE_np = _pbs.ATTR_NODE_np
-ATTR_NODE_properties = _pbs.ATTR_NODE_properties
-ATTR_NODE_ntype = _pbs.ATTR_NODE_ntype
-ATTR_NODE_jobs = _pbs.ATTR_NODE_jobs
-ATTR_NODE_status = _pbs.ATTR_NODE_status
-ATTR_NODE_note = _pbs.ATTR_NODE_note
-ATTR_mailsubjectfmt = _pbs.ATTR_mailsubjectfmt
-ATTR_mailbodyfmt = _pbs.ATTR_mailbodyfmt
-CHECKPOINT_UNSPECIFIED = _pbs.CHECKPOINT_UNSPECIFIED
-NO_HOLD = _pbs.NO_HOLD
-NO_JOIN = _pbs.NO_JOIN
-NO_KEEP = _pbs.NO_KEEP
-MAIL_AT_ABORT = _pbs.MAIL_AT_ABORT
-DELDELAY = _pbs.DELDELAY
-DELPURGE = _pbs.DELPURGE
-PURGECOMP = _pbs.PURGECOMP
-EXECQUEONLY = _pbs.EXECQUEONLY
-RERUNFORCE = _pbs.RERUNFORCE
-USER_HOLD = _pbs.USER_HOLD
-OTHER_HOLD = _pbs.OTHER_HOLD
-SYSTEM_HOLD = _pbs.SYSTEM_HOLD
-ND_free = _pbs.ND_free
-ND_offline = _pbs.ND_offline
-ND_down = _pbs.ND_down
-ND_reserve = _pbs.ND_reserve
-ND_job_exclusive = _pbs.ND_job_exclusive
-ND_job_sharing = _pbs.ND_job_sharing
-ND_busy = _pbs.ND_busy
-ND_state_unknown = _pbs.ND_state_unknown
-ND_timeshared = _pbs.ND_timeshared
-ND_cluster = _pbs.ND_cluster
-Q_DT_batch = _pbs.Q_DT_batch
-Q_DT_interactive = _pbs.Q_DT_interactive
-Q_DT_rerunable = _pbs.Q_DT_rerunable
-Q_DT_nonrerunable = _pbs.Q_DT_nonrerunable
-Q_DT_fault_tolerant = _pbs.Q_DT_fault_tolerant
-Q_DT_fault_intolerant = _pbs.Q_DT_fault_intolerant
-Q_DT_job_array = _pbs.Q_DT_job_array
-MAX_ENCODE_BFR = _pbs.MAX_ENCODE_BFR
-MGR_CMD_CREATE = _pbs.MGR_CMD_CREATE
-MGR_CMD_DELETE = _pbs.MGR_CMD_DELETE
-MGR_CMD_SET = _pbs.MGR_CMD_SET
-MGR_CMD_UNSET = _pbs.MGR_CMD_UNSET
-MGR_CMD_LIST = _pbs.MGR_CMD_LIST
-MGR_CMD_PRINT = _pbs.MGR_CMD_PRINT
-MGR_CMD_ACTIVE = _pbs.MGR_CMD_ACTIVE
-MGR_OBJ_NONE = _pbs.MGR_OBJ_NONE
-MGR_OBJ_SERVER = _pbs.MGR_OBJ_SERVER
-MGR_OBJ_QUEUE = _pbs.MGR_OBJ_QUEUE
-MGR_OBJ_JOB = _pbs.MGR_OBJ_JOB
-MGR_OBJ_NODE = _pbs.MGR_OBJ_NODE
-MSG_OUT = _pbs.MSG_OUT
-MSG_ERR = _pbs.MSG_ERR
-SHUT_SIG = _pbs.SHUT_SIG
-SHUT_IMMEDIATE = _pbs.SHUT_IMMEDIATE
-SHUT_DELAY = _pbs.SHUT_DELAY
-SHUT_QUICK = _pbs.SHUT_QUICK
-SIG_RESUME = _pbs.SIG_RESUME
-SIG_SUSPEND = _pbs.SIG_SUSPEND
-PBS_MAXHOSTNAME = _pbs.PBS_MAXHOSTNAME
-MAXPATHLEN = _pbs.MAXPATHLEN
-MAXNAMLEN = _pbs.MAXNAMLEN
-MAX_NOTE = _pbs.MAX_NOTE
-MAX_NOTE_STR = _pbs.MAX_NOTE_STR
-PBS_MAXUSER = _pbs.PBS_MAXUSER
-PBS_MAXGRPN = _pbs.PBS_MAXGRPN
-PBS_MAXQUEUENAME = _pbs.PBS_MAXQUEUENAME
-PBS_MAXSERVERNAME = _pbs.PBS_MAXSERVERNAME
-PBS_MAXJOBARRAYLEN = _pbs.PBS_MAXJOBARRAYLEN
-PBS_MAXSEQNUM = _pbs.PBS_MAXSEQNUM
-PBS_MAXPORTNUM = _pbs.PBS_MAXPORTNUM
-PBS_MAXJOBARRAY = _pbs.PBS_MAXJOBARRAY
-PBS_MAXSVRJOBID = _pbs.PBS_MAXSVRJOBID
-PBS_MAXCLTJOBID = _pbs.PBS_MAXCLTJOBID
-PBS_MAXDEST = _pbs.PBS_MAXDEST
-PBS_MAXROUTEDEST = _pbs.PBS_MAXROUTEDEST
-PBS_USE_IFF = _pbs.PBS_USE_IFF
-PBS_INTERACTIVE = _pbs.PBS_INTERACTIVE
-PBS_TERM_BUF_SZ = _pbs.PBS_TERM_BUF_SZ
-PBS_TERM_CCA = _pbs.PBS_TERM_CCA
-PBS_QS_VERSION_BASE = _pbs.PBS_QS_VERSION_BASE
-PBS_QS_VERSION_INT = _pbs.PBS_QS_VERSION_INT
-PBS_QS_VERSION = _pbs.PBS_QS_VERSION
-PBS_BATCH_SERVICE_NAME = _pbs.PBS_BATCH_SERVICE_NAME
-PBS_BATCH_SERVICE_PORT = _pbs.PBS_BATCH_SERVICE_PORT
-PBS_BATCH_SERVICE_NAME_DIS = _pbs.PBS_BATCH_SERVICE_NAME_DIS
-PBS_BATCH_SERVICE_PORT_DIS = _pbs.PBS_BATCH_SERVICE_PORT_DIS
-PBS_MOM_SERVICE_NAME = _pbs.PBS_MOM_SERVICE_NAME
-PBS_MOM_SERVICE_PORT = _pbs.PBS_MOM_SERVICE_PORT
-PBS_MANAGER_SERVICE_NAME = _pbs.PBS_MANAGER_SERVICE_NAME
-PBS_MANAGER_SERVICE_PORT = _pbs.PBS_MANAGER_SERVICE_PORT
-PBS_SCHEDULER_SERVICE_NAME = _pbs.PBS_SCHEDULER_SERVICE_NAME
-PBS_SCHEDULER_SERVICE_PORT = _pbs.PBS_SCHEDULER_SERVICE_PORT
-CHECKPOINTHOLD = _pbs.CHECKPOINTHOLD
-CHECKPOINTCONT = _pbs.CHECKPOINTCONT
-MOM_DEFAULT_CHECKPOINT_DIR = _pbs.MOM_DEFAULT_CHECKPOINT_DIR
-SET = _pbs.SET
-UNSET = _pbs.UNSET
-INCR = _pbs.INCR
-DECR = _pbs.DECR
-EQ = _pbs.EQ
-NE = _pbs.NE
-GE = _pbs.GE
-GT = _pbs.GT
-LE = _pbs.LE
-LT = _pbs.LT
-DFLT = _pbs.DFLT
-MERGE = _pbs.MERGE
-class attrl(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, attrl, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, attrl, name)
-    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
-    __repr__ = _swig_repr
-    __swig_setmethods__["next"] = _pbs.attrl_next_set
-    __swig_getmethods__["next"] = _pbs.attrl_next_get
-    if _newclass:next = _swig_property(_pbs.attrl_next_get, _pbs.attrl_next_set)
-    __swig_setmethods__["name"] = _pbs.attrl_name_set
-    __swig_getmethods__["name"] = _pbs.attrl_name_get
-    if _newclass:name = _swig_property(_pbs.attrl_name_get, _pbs.attrl_name_set)
-    __swig_setmethods__["resource"] = _pbs.attrl_resource_set
-    __swig_getmethods__["resource"] = _pbs.attrl_resource_get
-    if _newclass:resource = _swig_property(_pbs.attrl_resource_get, _pbs.attrl_resource_set)
-    __swig_setmethods__["value"] = _pbs.attrl_value_set
-    __swig_getmethods__["value"] = _pbs.attrl_value_get
-    if _newclass:value = _swig_property(_pbs.attrl_value_get, _pbs.attrl_value_set)
-    __swig_setmethods__["op"] = _pbs.attrl_op_set
-    __swig_getmethods__["op"] = _pbs.attrl_op_get
-    if _newclass:op = _swig_property(_pbs.attrl_op_get, _pbs.attrl_op_set)
-    def __str__(self): return _pbs.attrl___str__(self)
-    __swig_destroy__ = _pbs.delete_attrl
-    __del__ = lambda self : None;
-attrl_swigregister = _pbs.attrl_swigregister
-attrl_swigregister(attrl)
-
-class attropl(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, attropl, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, attropl, name)
-    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
-    __repr__ = _swig_repr
-    __swig_setmethods__["next"] = _pbs.attropl_next_set
-    __swig_getmethods__["next"] = _pbs.attropl_next_get
-    if _newclass:next = _swig_property(_pbs.attropl_next_get, _pbs.attropl_next_set)
-    __swig_setmethods__["name"] = _pbs.attropl_name_set
-    __swig_getmethods__["name"] = _pbs.attropl_name_get
-    if _newclass:name = _swig_property(_pbs.attropl_name_get, _pbs.attropl_name_set)
-    __swig_setmethods__["resource"] = _pbs.attropl_resource_set
-    __swig_getmethods__["resource"] = _pbs.attropl_resource_get
-    if _newclass:resource = _swig_property(_pbs.attropl_resource_get, _pbs.attropl_resource_set)
-    __swig_setmethods__["value"] = _pbs.attropl_value_set
-    __swig_getmethods__["value"] = _pbs.attropl_value_get
-    if _newclass:value = _swig_property(_pbs.attropl_value_get, _pbs.attropl_value_set)
-    __swig_setmethods__["op"] = _pbs.attropl_op_set
-    __swig_getmethods__["op"] = _pbs.attropl_op_get
-    if _newclass:op = _swig_property(_pbs.attropl_op_get, _pbs.attropl_op_set)
-    def __str__(self): return _pbs.attropl___str__(self)
-    __swig_destroy__ = _pbs.delete_attropl
-    __del__ = lambda self : None;
-attropl_swigregister = _pbs.attropl_swigregister
-attropl_swigregister(attropl)
-
-class batch_status(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, batch_status, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, batch_status, name)
-    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
-    __repr__ = _swig_repr
-    __swig_setmethods__["next"] = _pbs.batch_status_next_set
-    __swig_getmethods__["next"] = _pbs.batch_status_next_get
-    if _newclass:next = _swig_property(_pbs.batch_status_next_get, _pbs.batch_status_next_set)
-    __swig_setmethods__["name"] = _pbs.batch_status_name_set
-    __swig_getmethods__["name"] = _pbs.batch_status_name_get
-    if _newclass:name = _swig_property(_pbs.batch_status_name_get, _pbs.batch_status_name_set)
-    __swig_setmethods__["attribs"] = _pbs.batch_status_attribs_set
-    __swig_getmethods__["attribs"] = _pbs.batch_status_attribs_get
-    if _newclass:attribs = _swig_property(_pbs.batch_status_attribs_get, _pbs.batch_status_attribs_set)
-    __swig_setmethods__["text"] = _pbs.batch_status_text_set
-    __swig_getmethods__["text"] = _pbs.batch_status_text_get
-    if _newclass:text = _swig_property(_pbs.batch_status_text_get, _pbs.batch_status_text_set)
-batch_status_swigregister = _pbs.batch_status_swigregister
-batch_status_swigregister(batch_status)
-
-
-def avail(*args):
-  return _pbs.avail(*args)
-avail = _pbs.avail
-
-def pbs_asyrunjob(*args):
-  return _pbs.pbs_asyrunjob(*args)
-pbs_asyrunjob = _pbs.pbs_asyrunjob
-
-def pbs_alterjob(*args):
-  return _pbs.pbs_alterjob(*args)
-pbs_alterjob = _pbs.pbs_alterjob
-
-def pbs_connect(*args):
-  return _pbs.pbs_connect(*args)
-pbs_connect = _pbs.pbs_connect
-
-def pbs_query_max_connections():
-  return _pbs.pbs_query_max_connections()
-pbs_query_max_connections = _pbs.pbs_query_max_connections
-
-def pbs_default():
-  return _pbs.pbs_default()
-pbs_default = _pbs.pbs_default
-
-def pbs_deljob(*args):
-  return _pbs.pbs_deljob(*args)
-pbs_deljob = _pbs.pbs_deljob
-
-def pbs_disconnect(*args):
-  return _pbs.pbs_disconnect(*args)
-pbs_disconnect = _pbs.pbs_disconnect
-
-def pbs_geterrmsg(*args):
-  return _pbs.pbs_geterrmsg(*args)
-pbs_geterrmsg = _pbs.pbs_geterrmsg
-
-def pbs_holdjob(*args):
-  return _pbs.pbs_holdjob(*args)
-pbs_holdjob = _pbs.pbs_holdjob
-
-def pbs_locjob(*args):
-  return _pbs.pbs_locjob(*args)
-pbs_locjob = _pbs.pbs_locjob
-
-def pbs_manager(*args):
-  return _pbs.pbs_manager(*args)
-pbs_manager = _pbs.pbs_manager
-
-def pbs_movejob(*args):
-  return _pbs.pbs_movejob(*args)
-pbs_movejob = _pbs.pbs_movejob
-
-def pbs_msgjob(*args):
-  return _pbs.pbs_msgjob(*args)
-pbs_msgjob = _pbs.pbs_msgjob
-
-def pbs_orderjob(*args):
-  return _pbs.pbs_orderjob(*args)
-pbs_orderjob = _pbs.pbs_orderjob
-
-def pbs_rescquery(*args):
-  return _pbs.pbs_rescquery(*args)
-pbs_rescquery = _pbs.pbs_rescquery
-
-def pbs_rescreserve(*args):
-  return _pbs.pbs_rescreserve(*args)
-pbs_rescreserve = _pbs.pbs_rescreserve
-
-def pbs_rescrelease(*args):
-  return _pbs.pbs_rescrelease(*args)
-pbs_rescrelease = _pbs.pbs_rescrelease
-
-def pbs_rerunjob(*args):
-  return _pbs.pbs_rerunjob(*args)
-pbs_rerunjob = _pbs.pbs_rerunjob
-
-def pbs_rlsjob(*args):
-  return _pbs.pbs_rlsjob(*args)
-pbs_rlsjob = _pbs.pbs_rlsjob
-
-def pbs_runjob(*args):
-  return _pbs.pbs_runjob(*args)
-pbs_runjob = _pbs.pbs_runjob
-
-def pbs_selectjob(*args):
-  return _pbs.pbs_selectjob(*args)
-pbs_selectjob = _pbs.pbs_selectjob
-
-def pbs_sigjob(*args):
-  return _pbs.pbs_sigjob(*args)
-pbs_sigjob = _pbs.pbs_sigjob
-
-def pbs_statfree(*args):
-  return _pbs.pbs_statfree(*args)
-pbs_statfree = _pbs.pbs_statfree
-
-def pbs_statjob(*args):
-  return _pbs.pbs_statjob(*args)
-pbs_statjob = _pbs.pbs_statjob
-
-def pbs_selstat(*args):
-  return _pbs.pbs_selstat(*args)
-pbs_selstat = _pbs.pbs_selstat
-
-def pbs_statque(*args):
-  return _pbs.pbs_statque(*args)
-pbs_statque = _pbs.pbs_statque
-
-def pbs_statserver(*args):
-  return _pbs.pbs_statserver(*args)
-pbs_statserver = _pbs.pbs_statserver
-
-def pbs_statnode(*args):
-  return _pbs.pbs_statnode(*args)
-pbs_statnode = _pbs.pbs_statnode
-
-def pbs_submit(*args):
-  return _pbs.pbs_submit(*args)
-pbs_submit = _pbs.pbs_submit
-
-def pbs_terminate(*args):
-  return _pbs.pbs_terminate(*args)
-pbs_terminate = _pbs.pbs_terminate
-
-def totpool(*args):
-  return _pbs.totpool(*args)
-totpool = _pbs.totpool
-
-def usepool(*args):
-  return _pbs.usepool(*args)
-usepool = _pbs.usepool
-
-def pbs_fbserver():
-  return _pbs.pbs_fbserver()
-pbs_fbserver = _pbs.pbs_fbserver
-
-def pbs_get_server_list():
-  return _pbs.pbs_get_server_list()
-pbs_get_server_list = _pbs.pbs_get_server_list
-
-def pbs_sigjobasync(*args):
-  return _pbs.pbs_sigjobasync(*args)
-pbs_sigjobasync = _pbs.pbs_sigjobasync
-
-def pbs_alterjob_async(*args):
-  return _pbs.pbs_alterjob_async(*args)
-pbs_alterjob_async = _pbs.pbs_alterjob_async
-
-def pbs_checkpointjob(*args):
-  return _pbs.pbs_checkpointjob(*args)
-pbs_checkpointjob = _pbs.pbs_checkpointjob
-
-def openrm(*args):
-  return _pbs.openrm(*args)
-openrm = _pbs.openrm
-
-def closerm(*args):
-  return _pbs.closerm(*args)
-closerm = _pbs.closerm
-
-def downrm(*args):
-  return _pbs.downrm(*args)
-downrm = _pbs.downrm
-
-def configrm(*args):
-  return _pbs.configrm(*args)
-configrm = _pbs.configrm
-
-def addreq(*args):
-  return _pbs.addreq(*args)
-addreq = _pbs.addreq
-
-def allreq(*args):
-  return _pbs.allreq(*args)
-allreq = _pbs.allreq
-
-def getreq(*args):
-  return _pbs.getreq(*args)
-getreq = _pbs.getreq
-
-def flushreq():
-  return _pbs.flushreq()
-flushreq = _pbs.flushreq
-
-def activereq():
-  return _pbs.activereq()
-activereq = _pbs.activereq
-
-def fullresp(*args):
-  return _pbs.fullresp(*args)
-fullresp = _pbs.fullresp
-LOG_BUF_SIZE = _pbs.LOG_BUF_SIZE
-LOG_EMERG = _pbs.LOG_EMERG
-LOG_ALERT = _pbs.LOG_ALERT
-LOG_CRIT = _pbs.LOG_CRIT
-LOG_ERR = _pbs.LOG_ERR
-LOG_WARNING = _pbs.LOG_WARNING
-LOG_NOTICE = _pbs.LOG_NOTICE
-LOG_INFO = _pbs.LOG_INFO
-LOG_DEBUG = _pbs.LOG_DEBUG
-
-def log_close(*args):
-  return _pbs.log_close(*args)
-log_close = _pbs.log_close
-
-def log_err(*args):
-  return _pbs.log_err(*args)
-log_err = _pbs.log_err
-
-def log_event(*args):
-  return _pbs.log_event(*args)
-log_event = _pbs.log_event
-
-def log_open(*args):
-  return _pbs.log_open(*args)
-log_open = _pbs.log_open
-
-def log_record(*args):
-  return _pbs.log_record(*args)
-log_record = _pbs.log_record
-
-def log_roll(*args):
-  return _pbs.log_roll(*args)
-log_roll = _pbs.log_roll
-
-def log_size():
-  return _pbs.log_size()
-log_size = _pbs.log_size
-
-def chk_file_sec(*args):
-  return _pbs.chk_file_sec(*args)
-chk_file_sec = _pbs.chk_file_sec
-
-def setup_env(*args):
-  return _pbs.setup_env(*args)
-setup_env = _pbs.setup_env
-
-def log_ext(*args):
-  return _pbs.log_ext(*args)
-log_ext = _pbs.log_ext
-
-def log_init(*args):
-  return _pbs.log_init(*args)
-log_init = _pbs.log_init
-
-def log_remove_old(*args):
-  return _pbs.log_remove_old(*args)
-log_remove_old = _pbs.log_remove_old
-PBSEVENT_ERROR = _pbs.PBSEVENT_ERROR
-PBSEVENT_SYSTEM = _pbs.PBSEVENT_SYSTEM
-PBSEVENT_ADMIN = _pbs.PBSEVENT_ADMIN
-PBSEVENT_JOB = _pbs.PBSEVENT_JOB
-PBSEVENT_JOB_USAGE = _pbs.PBSEVENT_JOB_USAGE
-PBSEVENT_SECURITY = _pbs.PBSEVENT_SECURITY
-PBSEVENT_SCHED = _pbs.PBSEVENT_SCHED
-PBSEVENT_DEBUG = _pbs.PBSEVENT_DEBUG
-PBSEVENT_DEBUG2 = _pbs.PBSEVENT_DEBUG2
-PBSEVENT_FORCE = _pbs.PBSEVENT_FORCE
-PBS_EVENTCLASS_SERVER = _pbs.PBS_EVENTCLASS_SERVER
-PBS_EVENTCLASS_QUEUE = _pbs.PBS_EVENTCLASS_QUEUE
-PBS_EVENTCLASS_JOB = _pbs.PBS_EVENTCLASS_JOB
-PBS_EVENTCLASS_REQUEST = _pbs.PBS_EVENTCLASS_REQUEST
-PBS_EVENTCLASS_FILE = _pbs.PBS_EVENTCLASS_FILE
-PBS_EVENTCLASS_ACCT = _pbs.PBS_EVENTCLASS_ACCT
-PBS_EVENTCLASS_NODE = _pbs.PBS_EVENTCLASS_NODE
-PBSEVENT_MASK = _pbs.PBSEVENT_MASK
-MAX_PATH_LEN = _pbs.MAX_PATH_LEN
-SECS_PER_DAY = _pbs.SECS_PER_DAY
-TRUE = _pbs.TRUE
-FALSE = _pbs.FALSE
-#  PBS python interface
-#  Author: Bas van der Vlies <basv@sara.nl>
-#  Date  : 27 Feb 2002
-#  Desc. : This is python wrapper class for getting the resource
-#          mom values.
-#
-# CVS info
-# $Id: resmom.py,v 1.6 2002/10/21 14:14:47 sscpbas Exp $
-# $Date: 2002/10/21 14:14:47 $
-# $Revision: 1.6 $
-#
-import string
-import types
-
-# Default linux resources to get from the mom
-#
-default_linux_res = [   
-    "availmem",	    # available memory size in KB
-    "ideal_load",	# static ideal_load value
-    "loadave",      # the current load average
-    "max_load",	    # static max_load value
-    "ncpus",        # number of cpus 
-    "physmem",      # physical memory size in KB
-    "resi",		    # resident memory size for a pid or session in KB
-    "totmem",	    # total memory size in KB
-    "walltime",	    # wall clock time for a pid
-]
-
-# Default irix6 resources to get from the mom
-#
-default_irix6_res = [   
-    "availmem",	# available memory size in KB
-    "loadave",      # the current load average
-    "ncpus",        # number of cpus
-    "physmem",      # physical memory size in KB
-    "resi",		# resident memory size for a pid or session in KB
-    "walltime",	# wall clock time for a pid
-    "quota",	# quota information (sizes in KB)
-]
-
-default_mom_res = [   
-    "arch",		# the architecture of the machine
-    "uname",	# the architecture of the machine
-    "cput",		# cpu time for a pid or session
-    "idletime",	# seconds of idle time
-    "mem",		# memory size for a pid or session in KB
-    "sessions",	# list of sessions in the system
-    "pids",         # list of pids in a session
-    "nsessions",	# number of sessions in the system
-    "nusers",	# number of users in the system
-    "size",		# size of a file or filesystem
-    "host",		# Name  of host on which job should be run 
-    "nodes",	# Number and/or type of nodes to be reserved for exclusive use by the job
-    "other",	# Allows a  user  to  specify  site  specific  information
-    "software",	# Allows a user to specify software required by the job
-]
-
-def check_resp(dict, str):
-  """
-  Check the daemon response. If we have no permission to
-  query the values then we got a 'None' response. Else
-  if we supplied a keyword that does not exits we get a
-  '?' response
-  """
-  if not str:
-    return
-  
-  ## Value can contain the '=' char :-(
-  #  
-  l =  string.split(str, '=')
-  key = string.strip(l[0])
-  if len(l) > 2:
-    val = string.strip( '='.join(l[1:]) )
-  else:
-    val = string.strip(l[1])
-
-  key = string.strip(key)
-  val = string.strip(val)
-
-  # Did we got a valid response
-  #
-  if not val[0] == '?':
-    dict[key] = val
-
-def use_default_keywords(id, d):
-  """
-  Get the default values from the mom daemon
-  """
-  for res in default_mom_res:
-    addreq(id, res)
-    resp = getreq(id)
-    check_resp(d, resp)
-
-  # Do not proceed if we have an empty dictionary
-  #
-  if not d:
-    return
-
-  if d['arch' ] == 'linux':
-    for res in default_linux_res:
-      addreq(id, res)
-      resp = getreq(id)
-      check_resp(d, resp)
-
-def use_user_keywords(id, d, l):
-  for res in l:
-    if type(res) is types.StringType:
-      addreq(id, res)
-      resp = getreq(id)
-      check_resp(d, resp)
-    else:
-      raise TypeError, 'Expected a string got %s :%s' %(type(res), res) 
-
-def get_mom_values(id, list = None):
-  """
-  This function will query the mom with a default resmon keywords
-  and 'arch' depended keywords. Supported archs are:
-    linux
-    irix6
-  User can also supply their own list of keywords as second parameter.
-  arguments:
-    id   : connection number with mom daemon on a node
-    list : optional parameter. If supplied then use this. A list
-           of mom keywords.
-  """
-
-  d = {}
-  if not list:
-    use_default_keywords(id, d)
-  else:
-    use_user_keywords(id, d , list)
-     
-  return d
-
-version_info = ( 4, 3, 6 )
-version = 'SARA pbs_python version 4.3.6'
-
-# A useful dict with error codes to text
-#
-# SVN Info:
-#	$Id: errors.py 429 2005-11-04 13:59:06Z bas $
-#
-errors_txt = { 
-	0 : 'no error',
-	15001 :	 'Unknown Job Identifier',
-	15002 : 'Undefined Attribute',
-	15003 : 'attempt to set READ ONLY attribute',
-	15004 : 'Invalid request',
-	15005 : 'Unknown batch request',
-	15006 : 'Too many submit retries',
-	15007 : 'No permission',
-	15008 : 'access from host not allowed',
-	15009 : 'job already exists',
-	15010 : 'system error occurred',
-	15011 : 'internal server error occurred',
-	15012 : 'parent job of dependent in rte que',
-	15013 : 'unknown signal name',
-	15014 : 'bad attribute value',
-	15015 : 'Cannot modify attrib in run state',
-	15016 : 'request invalid for job state',
-	15018 : 'Unknown queue name',
-	15019 : 'Invalid Credential in request',
-	15020 : 'Expired Credential in request',
-	15021 : 'Queue not enabled',
-	15022 : 'No access permission for queue',
-	15023 : 'Bad user - no password entry',
-	15024 : 'Max hop count exceeded',
-	15025 : 'Queue already exists',
-	15026 : 'incompatable queue attribute type',
-	15027 : 'Queue Busy (not empty)',
-	15028 : 'Queue name too long',
-	15029 : 'Feature',
-	15030 : 'Cannot enable queue,needs add def',
-	15031 : 'Protocol (ASN.1) error',
-	15032 : 'Bad attribute list structure',
-	15033 : 'No free connections',
-	15034 : 'No server to connect to',
-	15035 : 'Unknown resource',
-	15036 : 'Job exceeds Queue resource limits',
-	15037 : 'No Default Queue Defined',
-	15038 : 'Job Not Rerunnable',
-	15039 : 'Route rejected by all destinations',
-	15040 : 'Time in Route Queue Expired',
-	15041 : 'Request to MOM failed',
-	15042 : '(qsub) cannot access script file',
-	15043 : 'Stage In of files failed',
-	15044 : 'Resources temporarily unavailable',
-	15045 : 'Bad Group specified',
-	15046 : 'Max number of jobs in queue',
-	15047 : 'Checkpoint Busy, may be retries',
-	15048 : 'Limit exceeds allowable',
-	15049 : 'Bad Account attribute value',
-	15050 : 'Job already in exit state',
-	15051 : 'Job files not copied',
-	15052 : 'unknown job id after clean init',
-	15053 : 'No Master in Sync Set',
-	15054 : 'Invalid dependency',
-	15055 : 'Duplicate entry in List',
-	15056 : 'Bad DIS based Request Protocol',
-	15057 : 'cannot execute there',
-	15058 : 'sister rejected',
-	15059 : 'sister could not communicate',
-	15060 : 'req rejected -server shutting down',
-	15061 : 'not all tasks could checkpoint',
-	15062 : 'Named node is not in the list',
-	15063 : 'node-attribute not recognized',
-	15064 : 'Server has no node list',
-	15065 : 'Node name is too big',
-	15066 : 'Node name already exists',
-	15067 : 'Bad node-attribute value',
-	15068 : 'State values are mutually exclusive',
-	15069 : 'Error(s) during global modification of nodes',
-	15070 : 'could not contact Mom',
-	15071 : 'no time-shared nodes',
-	15201 : 'resource unknown',
-	15202 : 'parameter could not be used',
-	15203 : 'a parameter needed did not exist',
-	15204 : "something specified didn't exist",
-	15205 : 'a system error occured',
-	15206 : 'only part of reservation made'
-}
-
-def error():
-  """
-  Check if there is an error, if so fetch the error message string. 
-  It says more then a number!
-  """
-  e = get_error()
-  if errors_txt.has_key(e):
-     return (e, errors_txt[e])
-  else:
-     return (e, "Could not find a text for this error, uhhh")
-
-
-cvar = _pbs.cvar
-
Index: trunk/src/pbs_error.h
===================================================================
--- trunk/src/pbs_error.h	(revision 299)
+++ 	(revision )
@@ -1,197 +1,0 @@
-/*
-*         OpenPBS (Portable Batch System) v2.3 Software License
-* 
-* Copyright (c) 1999-2000 Veridian Information Solutions, Inc.
-* All rights reserved.
-* 
-* ---------------------------------------------------------------------------
-* For a license to use or redistribute the OpenPBS software under conditions
-* other than those described below, or to purchase support for this software,
-* please contact Veridian Systems, PBS Products Department ("Licensor") at:
-* 
-*    www.OpenPBS.org  +1 650 967-4675                  sales@OpenPBS.org
-*                        877 902-4PBS (US toll-free)
-* ---------------------------------------------------------------------------
-* 
-* This license covers use of the OpenPBS v2.3 software (the "Software") at
-* your site or location, and, for certain users, redistribution of the
-* Software to other sites and locations.  Use and redistribution of
-* OpenPBS v2.3 in source and binary forms, with or without modification,
-* are permitted provided that all of the following conditions are met.
-* After December 31, 2001, only conditions 3-6 must be met:
-* 
-* 1. Commercial and/or non-commercial use of the Software is permitted
-*    provided a current software registration is on file at www.OpenPBS.org.
-*    If use of this software contributes to a publication, product, or
-*    service, proper attribution must be given; see www.OpenPBS.org/credit.html
-* 
-* 2. Redistribution in any form is only permitted for non-commercial,
-*    non-profit purposes.  There can be no charge for the Software or any
-*    software incorporating the Software.  Further, there can be no
-*    expectation of revenue generated as a consequence of redistributing
-*    the Software.
-* 
-* 3. Any Redistribution of source code must retain the above copyright notice
-*    and the acknowledgment contained in paragraph 6, this list of conditions
-*    and the disclaimer contained in paragraph 7.
-* 
-* 4. Any Redistribution in binary form must reproduce the above copyright
-*    notice and the acknowledgment contained in paragraph 6, this list of
-*    conditions and the disclaimer contained in paragraph 7 in the
-*    documentation and/or other materials provided with the distribution.
-* 
-* 5. Redistributions in any form must be accompanied by information on how to
-*    obtain complete source code for the OpenPBS software and any
-*    modifications and/or additions to the OpenPBS software.  The source code
-*    must either be included in the distribution or be available for no more
-*    than the cost of distribution plus a nominal fee, and all modifications
-*    and additions to the Software must be freely redistributable by any party
-*    (including Licensor) without restriction.
-* 
-* 6. All advertising materials mentioning features or use of the Software must
-*    display the following acknowledgment:
-* 
-*     "This product includes software developed by NASA Ames Research Center,
-*     Lawrence Livermore National Laboratory, and Veridian Information 
-*     Solutions, Inc.
-*     Visit www.OpenPBS.org for OpenPBS software support,
-*     products, and information."
-* 
-* 7. DISCLAIMER OF WARRANTY
-* 
-* THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. ANY EXPRESS
-* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT
-* ARE EXPRESSLY DISCLAIMED.
-* 
-* IN NO EVENT SHALL VERIDIAN CORPORATION, ITS AFFILIATED COMPANIES, OR THE
-* U.S. GOVERNMENT OR ANY OF ITS AGENCIES BE LIABLE FOR ANY DIRECT OR INDIRECT,
-* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
-* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-* 
-* This license will be governed by the laws of the Commonwealth of Virginia,
-* without reference to its choice of law rules.
-*/
-
-/*
- * The error returns possible to a Batch Request
- *
- * Each error is prefixed with the string PBSE_ for Portable (Posix)
- * Batch System Error.  The numeric values start with 15000 since the
- * POSIX Batch Extensions Working group is 1003.15
- */
-#ifndef PBSE_
-
-#define PBSE_	15000
-
-#define PBSE_NONE       0		/* no error */
-#define PBSE_UNKJOBID	15001		/* Unknown Job Identifier */
-#define PBSE_NOATTR	15002		/* Undefined Attribute */
-#define PBSE_ATTRRO	15003		/* attempt to set READ ONLY attribute */
-#define PBSE_IVALREQ	15004		/* Invalid request */
-#define PBSE_UNKREQ	15005		/* Unknown batch request */
-#define PBSE_TOOMANY	15006		/* Too many submit retries */
-#define PBSE_PERM	15007		/* No permission */
-#define PBSE_BADHOST	15008		/* access from host not allowed */
-#define PBSE_JOBEXIST	15009		/* job already exists */
-#define PBSE_SYSTEM	15010		/* system error occurred */
-#define PBSE_INTERNAL	15011		/* internal server error occurred */
-#define PBSE_REGROUTE	15012		/* parent job of dependent in rte que */
-#define PBSE_UNKSIG	15013		/* unknown signal name */
-#define PBSE_BADATVAL	15014		/* bad attribute value */
-#define PBSE_MODATRRUN	15015		/* Cannot modify attrib in run state */
-#define PBSE_BADSTATE	15016		/* request invalid for job state */
-#define PBSE_UNKQUE	15018		/* Unknown queue name */
-#define PBSE_BADCRED	15019		/* Invalid Credential in request */
-#define PBSE_EXPIRED	15020		/* Expired Credential in request */
-#define PBSE_QUNOENB	15021		/* Queue not enabled */
-#define PBSE_QACESS	15022		/* No access permission for queue */
-#define PBSE_BADUSER	15023		/* Bad user - no password entry */
-#define PBSE_HOPCOUNT	15024		/* Max hop count exceeded */
-#define PBSE_QUEEXIST	15025		/* Queue already exists */
-#define PBSE_ATTRTYPE	15026		/* incompatable queue attribute type */
-#define PBSE_QUEBUSY	15027		/* Queue Busy (not empty) */
-#define PBSE_QUENBIG	15028		/* Queue name too long */
-#define PBSE_NOSUP	15029		/* Feature/function not supported */
-#define PBSE_QUENOEN	15030		/* Cannot enable queue,needs add def */
-#define PBSE_PROTOCOL	15031		/* Protocol (ASN.1) error */
-#define PBSE_BADATLST	15032		/* Bad attribute list structure */
-#define PBSE_NOCONNECTS	15033		/* No free connections */
-#define PBSE_NOSERVER	15034		/* No server to connect to */
-#define PBSE_UNKRESC	15035		/* Unknown resource */
-#define PBSE_EXCQRESC	15036		/* Job exceeds Queue resource limits */
-#define PBSE_QUENODFLT	15037		/* No Default Queue Defined */
-#define PBSE_NORERUN	15038		/* Job Not Rerunnable */
-#define PBSE_ROUTEREJ	15039		/* Route rejected by all destinations */
-#define PBSE_ROUTEEXPD	15040		/* Time in Route Queue Expired */
-#define PBSE_MOMREJECT  15041		/* Request to MOM failed */
-#define PBSE_BADSCRIPT	15042		/* (qsub) cannot access script file */
-#define PBSE_STAGEIN	15043		/* Stage In of files failed */
-#define PBSE_RESCUNAV	15044		/* Resources temporarily unavailable */
-#define PBSE_BADGRP	15045		/* Bad Group specified */
-#define PBSE_MAXQUED	15046		/* Max number of jobs in queue */
-#define PBSE_CKPBSY	15047		/* Checkpoint Busy, may be retries */
-#define PBSE_EXLIMIT	15048		/* Limit exceeds allowable */
-#define PBSE_BADACCT	15049		/* Bad Account attribute value */
-#define PBSE_ALRDYEXIT	15050		/* Job already in exit state */
-#define PBSE_NOCOPYFILE	15051		/* Job files not copied */
-#define PBSE_CLEANEDOUT	15052		/* unknown job id after clean init */
-#define PBSE_NOSYNCMSTR	15053		/* No Master in Sync Set */
-#define PBSE_BADDEPEND	15054		/* Invalid dependency */
-#define PBSE_DUPLIST	15055		/* Duplicate entry in List */
-#define PBSE_DISPROTO	15056		/* Bad DIS based Request Protocol */
-#define PBSE_EXECTHERE	15057		/* cannot execute there */
-#define PBSE_SISREJECT	15058		/* sister rejected */
-#define PBSE_SISCOMM	15059		/* sister could not communicate */
-#define PBSE_SVRDOWN	15060		/* req rejected -server shutting down */
-#define PBSE_CKPSHORT	15061		/* not all tasks could checkpoint */
-#define PBSE_UNKNODE	15062		/* Named node is not in the list */
-#define PBSE_UNKNODEATR	15063		/* node-attribute not recognized */
-#define PBSE_NONODES	15064		/* Server has no node list */
-#define PBSE_NODENBIG	15065		/* Node name is too big */
-#define PBSE_NODEEXIST	15066		/* Node name already exists */
-#define PBSE_BADNDATVAL	15067		/* Bad node-attribute value */
-#define PBSE_MUTUALEX	15068		/* State values are mutually exclusive */
-#define PBSE_GMODERR	15069		/* Error(s) during global modification of nodes */
-#define PBSE_NORELYMOM	15070		/* could not contact Mom */
-#define PBSE_NOTSNODE	15071		/* no time-shared nodes */
-
-/*
-** 	Resource monitor specific
-*/
-#define PBSE_RMUNKNOWN	15201		/* resource unknown */
-#define PBSE_RMBADPARAM	15202		/* parameter could not be used */
-#define PBSE_RMNOPARAM	15203		/* a parameter needed did not exist */
-#define PBSE_RMEXIST	15204		/* something specified didn't exist */
-#define PBSE_RMSYSTEM	15205		/* a system error occured */
-#define PBSE_RMPART	15206		/* only part of reservation made */
-#define RM_ERR_UNKNOWN	PBSE_RMUNKNOWN
-#define RM_ERR_BADPARAM	PBSE_RMBADPARAM
-#define RM_ERR_NOPARAM	PBSE_RMNOPARAM
-#define RM_ERR_EXIST	PBSE_RMEXIST
-#define RM_ERR_SYSTEM	PBSE_RMSYSTEM
-
-#ifndef NULL
-#define NULL (char *)0
-#endif /* NULL */
-
-
-/* the following structure is used to tie error number      */
-/* with text to be returned to a client, see svr_messages.c */
-
-struct pbs_err_to_txt {
-  int    err_no;
-  char **err_txt;
-  };
-
-extern char *pbse_to_txt(int);
-
-extern int pbs_errno;
-
-#endif  /* END PBSE_ */
-
-
Index: trunk/src/pbs_ifl.h
===================================================================
--- trunk/src/pbs_ifl.h	(revision 299)
+++ 	(revision )
@@ -1,548 +1,0 @@
-/*
- * $Id$
- *
-*         Portable Batch System (PBS) Software License
-* 
-* Copyright (c) 1999, MRJ Technology Solutions.
-* All rights reserved.
-* 
-* Acknowledgment: The Portable Batch System Software was originally developed
-* as a joint project between the Numerical Aerospace Simulation (NAS) Systems
-* Division of NASA Ames Research Center and the National Energy Research
-* Supercomputer Center (NERSC) of Lawrence Livermore National Laboratory.
-* 
-* Redistribution of the Portable Batch System Software and use in source
-* and binary forms, with or without modification, are permitted provided
-* that the following conditions are met:
-* 
-* - Redistributions of source code must retain the above copyright and
-*   acknowledgment notices, this list of conditions and the following
-*   disclaimer.
-* 
-* - Redistributions in binary form must reproduce the above copyright and 
-*   acknowledgment notices, this list of conditions and the following
-*   disclaimer in the documentation and/or other materials provided with the
-*   distribution.
-* 
-* - All advertising materials mentioning features or use of this software must
-*   display the following acknowledgment:
-* 
-*   This product includes software developed by NASA Ames Research Center,
-*   Lawrence Livermore National Laboratory, and MRJ Technology Solutions.
-* 
-*         DISCLAIMER OF WARRANTY
-* 
-* THIS SOFTWARE IS PROVIDED BY MRJ TECHNOLOGY SOLUTIONS ("MRJ") "AS IS" WITHOUT 
-* WARRANTY OF ANY KIND, AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
-* BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
-* FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT ARE EXPRESSLY DISCLAIMED.
-* 
-* IN NO EVENT, UNLESS REQUIRED BY APPLICABLE LAW, SHALL MRJ, NASA, NOR
-* THE U.S. GOVERNMENT BE LIABLE FOR ANY DIRECT DAMAGES WHATSOEVER,
-* NOR ANY INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
-* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-* 
-* This license will be governed by the laws of the Commonwealth of Virginia,
-* without reference to its choice of law rules.
-*/
-
-/*
- * @(#) $Id$
- */
-
-/*    
- *
- *  pbs_ifl.h   
- *
- */
-
-/*
- *  Changed by: Bas van der Vlies <basv@sara.nl>. 
- *  Desc.     : removed the macro definitions so that SWIG can understand 
- *              the header file syntax
-*/
-
-#ifndef _PBS_IFL_DEF
-#define _PBS_IFL_DEF
-
-/* Attribute Names used by user commands */
-
-#define ATTR_a "Execution_Time"
-#define ATTR_c "Checkpoint"
-#define ATTR_e "Error_Path"
-#define ATTR_f "fault_tolerant"
-#define ATTR_g "group_list"
-#define ATTR_h "Hold_Types"
-#define ATTR_j "Join_Path"
-#define ATTR_k "Keep_Files"
-#define ATTR_l "Resource_List"
-#define ATTR_m "Mail_Points"
-#define ATTR_o "Output_Path"
-#define ATTR_p "Priority"
-#define ATTR_q "destination"
-#define ATTR_r "Rerunable"
-#define ATTR_t "job_array_request"
-#define ATTR_array_id "job_array_id"
-#define ATTR_u "User_List"
-#define ATTR_v "Variable_List"
-#define ATTR_A "Account_Name"
-#define ATTR_M "Mail_Users"
-#define ATTR_N "Job_Name"
-#define ATTR_S "Shell_Path_List"
-#define ATTR_depend   "depend"
-#define ATTR_inter    "interactive"
-#define ATTR_stagein  "stagein"
-#define ATTR_stageout "stageout"
-#define ATTR_jobtype  "jobtype"
-
-/* additional job and general attribute names */
-
-#define ATTR_ctime      "ctime"
-#define ATTR_exechost   "exec_host"
-#define ATTR_mtime      "mtime"
-#define ATTR_qtime      "qtime"
-#define ATTR_session    "session_id"
-#define ATTR_euser      "euser"
-#define ATTR_egroup     "egroup"
-#define ATTR_hashname   "hashname"
-#define ATTR_hopcount   "hop_count"
-#define ATTR_security   "security"
-#define ATTR_sched_hint "sched_hint"
-#define ATTR_substate   "substate"
-#define ATTR_name       "Job_Name"
-#define ATTR_owner      "Job_Owner"
-#define ATTR_used       "resources_used"
-#define ATTR_state      "job_state"
-#define ATTR_queue      "queue"
-#define ATTR_server     "server"
-#define ATTR_maxrun     "max_running"
-#define ATTR_maxreport  "max_report"
-#define ATTR_total      "total_jobs"
-#define ATTR_comment    "comment"
-#define ATTR_cookie     "cookie"
-#define ATTR_qrank      "queue_rank"
-#define ATTR_altid      "alt_id"
-#define ATTR_etime      "etime"
-#define ATTR_exitstat   "exit_status"
-#define ATTR_forwardx11 "forward_x11"
-#define ATTR_submit_args "submit_args"
-#define ATTR_tokens     "tokens"
-#define ATTR_netcounter "net_counter"
-#define ATTR_umask      "umask"
-#define ATTR_start_time "start_time"
-#define ATTR_start_count "start_count"
-#define ATTR_checkpoint_dir  "checkpoint_dir"    /* user specified directory for checkpoint files */
-#define ATTR_checkpoint_name  "checkpoint_name"   /* user specified name of checkpoint file */
-#define ATTR_checkpoint_time  "checkpoint_time"   /* timestamp of start of last checkpoint */
-#define ATTR_checkpoint_restart_status  "checkpoint_restart_status"   /* checkpoint restart status */
-#define ATTR_restart_name  "restart_name"   /* saved name of checkpoint restart file */
-#define ATTR_comp_time   "comp_time"
-#define ATTR_reported    "reported"
-#define ATTR_intcmd      "inter_cmd"
-
-#ifdef USEJOBCREATE
-#define ATTR_pagg         "pagg_id"
-#endif /* USEJOBCREATE */
-
-/* additional queue attributes names */
-
-#define ATTR_aclgren    "acl_group_enable"
-#define ATTR_aclgroup   "acl_groups"
-#define ATTR_aclhten    "acl_host_enable"
-#define ATTR_aclhost    "acl_hosts"
-#define ATTR_acluren    "acl_user_enable"
-#define ATTR_acluser    "acl_users"
-#define ATTR_altrouter  "alt_router"
-#define ATTR_checkpoint_min  "checkpoint_min"
-#define ATTR_enable     "enabled"
-#define ATTR_fromroute  "from_route_only"
-#define ATTR_hostlist    "hostlist"         /* TORQUE only */
-#define ATTR_killdelay   "kill_delay"
-#define ATTR_maxgrprun   "max_group_run"
-#define ATTR_maxque      "max_queuable"
-#define ATTR_maxuserque  "max_user_queuable"
-#define ATTR_maxuserrun  "max_user_run"
-#define ATTR_qtype       "queue_type"
-#define ATTR_rescassn    "resources_assigned"
-#define ATTR_rescdflt    "resources_default"
-#define ATTR_rescmax     "resources_max"
-#define ATTR_rescmin     "resources_min"
-#define ATTR_rerunnable  "restartable"      /* TORQUE only */
-#define ATTR_rndzretry   "rendezvous_retry"
-#define ATTR_routedest   "route_destinations"
-#define ATTR_routeheld   "route_held_jobs"
-#define ATTR_routewait   "route_waiting_jobs"
-#define ATTR_routeretry  "route_retry_time"
-#define ATTR_routelife   "route_lifetime"
-#define ATTR_rsvexpdt    "reserved_expedite"
-#define ATTR_rsvsync     "reserved_sync"
-#define ATTR_start       "started"
-#define ATTR_count       "state_count"
-#define ATTR_number      "number_jobs"
-#define ATTR_acllogic    "acl_logic_or"
-#define ATTR_aclgrpslpy  "acl_group_sloppy"
-#define ATTR_keepcompleted "keep_completed"
-#define ATTR_disallowedtypes "disallowed_types"
-#define ATTR_is_transit  "is_transit"
-
-/* additional server attributes names */
-
-/* NOTE: steps for adding new attribute described in ??? */
-/*  - create #define ATTR_* in include/pbs_ifl.h
-    - insert SRV_ATR_* in include/server.h
-    - add ATTR_* in include/qmgr_svr_public.h
-    - insert structure in server/svr_attr_def.c
-        NOTE:  structure must be in same relative position as SRV_ATR_*
-    - insert usage code in proper location
-*/
-
-#define ATTR_aclroot     "acl_roots"
-#define ATTR_managers    "managers"
-#define ATTR_dfltque     "default_queue"
-#define ATTR_dispsvrsuffix "display_job_server_suffix"
-#define ATTR_jobsuffixalias "job_suffix_alias"
-#define ATTR_defnode     "default_node"
-#define ATTR_locsvrs     "location_servers"
-#define ATTR_logevents   "log_events"
-#define ATTR_logfile     "log_file"
-#define ATTR_loglevel    "log_level"
-#define ATTR_mailfrom    "mail_from"
-#define ATTR_nodepack    "node_pack"
-#define ATTR_nodesuffix  "node_suffix"
-#define ATTR_operators   "operators"
-#define ATTR_queryother  "query_other_jobs"
-#define ATTR_resccost    "resources_cost"
-#define ATTR_rescavail   "resources_available"
-#define ATTR_schedit     "scheduler_iteration"
-#define ATTR_scheduling  "scheduling"
-#define ATTR_status      "server_state"
-#define ATTR_syscost     "system_cost"
-#define ATTR_pingrate    "node_ping_rate"
-#define ATTR_ndchkrate   "node_check_rate"
-#define ATTR_tcptimeout  "tcp_timeout"
-#define ATTR_jobstatrate "job_stat_rate"
-#define ATTR_polljobs    "poll_jobs"
-#define ATTR_downonerror "down_on_error"
-#define ATTR_disableserveridcheck "disable_server_id_check"
-#define ATTR_jobnanny    "job_nanny"
-#define ATTR_ownerpurge  "owner_purge"
-#define ATTR_qcqlimits   "queue_centric_limits"
-#define ATTR_momjobsync  "mom_job_sync"
-#define ATTR_maildomain  "mail_domain"
-#define ATTR_pbsversion  "pbs_version"
-#define ATTR_submithosts "submit_hosts"
-#define ATTR_allownodesubmit  "allow_node_submit"
-#define ATTR_allowproxyuser   "allow_proxy_user"
-#define ATTR_autonodenp  "auto_node_np"
-#define ATTR_servername  "server_name"
-#define ATTR_logfilemaxsize "log_file_max_size"
-#define ATTR_logfilerolldepth "log_file_roll_depth"
-#define ATTR_logkeepdays  "log_keep_days"
-#define ATTR_nextjobnum   "next_job_number"
-#define ATTR_extraresc    "extra_resc"
-#define ATTR_schedversion "sched_version"
-#define ATTR_acctkeepdays "accounting_keep_days"
-#define ATTR_lockfile "lock_file"
-#define ATTR_credentiallifetime "credential_lifetime"
-#define ATTR_jobmustreport "job_must_report"
-#define ATTR_LockfileUpdateTime "lock_file_update_time"
-#define ATTR_LockfileCheckTime "lock_file_check_time"
-#define ATTR_npdefault  "np_default"
-#define ATTR_jobstarttimeout "job_start_timeout"
-
-/* additional node "attributes" names */
-
-#define ATTR_NODE_state         "state"
-#define ATTR_NODE_np            "np"
-#define ATTR_NODE_properties    "properties"
-#define ATTR_NODE_ntype         "ntype"
-#define ATTR_NODE_jobs          "jobs"
-#define ATTR_NODE_status        "status"
-#define ATTR_NODE_note          "note"
-
-/* notification email formating */
-#define ATTR_mailsubjectfmt "mail_subject_fmt"
-#define ATTR_mailbodyfmt    "mail_body_fmt"
-
-
-/* various attribute values */
-
-#define CHECKPOINT_UNSPECIFIED "u"
-#define NO_HOLD "n"
-#define NO_JOIN "n"
-#define NO_KEEP "n"
-#define MAIL_AT_ABORT "a"
-
-
-#define DELDELAY  "deldelay=" /* see qdel.c */
-#define DELPURGE  "delpurge="   /* see qdel.c */
-#define PURGECOMP  "purgecomplete="   /* see req_delete.c */
-#define EXECQUEONLY  "exec_queue_only"   /* see req_stat.c */
-#define RERUNFORCE "force"
-
-#define USER_HOLD "u"
-#define OTHER_HOLD "o"
-#define SYSTEM_HOLD "s"
-
-/* node-attribute values (state,ntype) */
-
-#define ND_free   "free"
-#define ND_offline  "offline"
-#define ND_down   "down"
-#define ND_reserve  "reserve"
-#define ND_job_exclusive "job-exclusive"
-#define ND_job_sharing  "job-sharing"
-#define ND_busy   "busy"
-#define ND_state_unknown "state-unknown"
-#define ND_timeshared  "time-shared"
-#define ND_cluster  "cluster"
-
-/* queue disallowed types */
-#define Q_DT_batch              "batch"
-#define Q_DT_interactive        "interactive"
-#define Q_DT_rerunable          "rerunable"
-#define Q_DT_nonrerunable       "nonrerunable"
-#define Q_DT_fault_tolerant     "fault_tolerant"
-#define Q_DT_fault_intolerant   "fault_intolerant"
-#define Q_DT_job_array          "job_array"
-
-/*constant related to sum of string lengths for above strings*/
-#define MAX_ENCODE_BFR  100
-
-#define MGR_CMD_CREATE 0
-#define MGR_CMD_DELETE 1
-#define MGR_CMD_SET 2
-#define MGR_CMD_UNSET 3
-#define MGR_CMD_LIST 4
-#define MGR_CMD_PRINT 5
-#define MGR_CMD_ACTIVE 6
-
-#define MGR_OBJ_NONE -1
-#define MGR_OBJ_SERVER  0
-#define MGR_OBJ_QUEUE   1
-#define MGR_OBJ_JOB 2
-#define MGR_OBJ_NODE 3
-
-/* Misc defines for various requests */
-
-#define MSG_OUT 1
-#define MSG_ERR 2
-
-#define SHUT_SIG -1
-#define SHUT_IMMEDIATE 0
-#define SHUT_DELAY 1
-#define SHUT_QUICK 2
-
-#define SIG_RESUME "resume"
-#define SIG_SUSPEND "suspend"
-
-
-/* WARNING: be careful changing these PBS_MAX* values.  They can result in a
-   change in the structure of the .JB file, and binary incompatibilities between
-   versions of TORQUE.  Do not change in a -fixes branch */
-   
-   
-
-#define PBS_MAXHOSTNAME  1024 /* max host name length */
-#ifndef MAXPATHLEN
-#define MAXPATHLEN  1024 /* max path name length */
-#endif
-#ifndef MAXNAMLEN
-#define MAXNAMLEN  255
-#endif
-#define MAX_NOTE  256 /* max node note length */
-#define MAX_NOTE_STR  "256" /* max node note length as a string literal (this MUST match MAX_NOTE) */
-
-#define PBS_MAXUSER  32 /* max user name length */
-#define PBS_MAXGRPN  16 /* max group name length */
-#define PBS_MAXQUEUENAME 15 /* max queue name length */
-#define PBS_MAXSERVERNAME PBS_MAXHOSTNAME /* max server name length */
-#define PBS_MAXJOBARRAYLEN      6       /* number of characters allowed in jobarray portion of job id, including '-' */
-#define PBS_MAXSEQNUM  8 /* max sequence number length */
-#define PBS_MAXPORTNUM  5 /* udp/tcp port numbers max=16 bits */
-#define PBS_MAXJOBARRAY  99999
-#define PBS_MAXSVRJOBID  (PBS_MAXSEQNUM + PBS_MAXSERVERNAME + PBS_MAXPORTNUM + PBS_MAXJOBARRAYLEN + 2 ) /* server job id size */
-#define PBS_MAXCLTJOBID  (PBS_MAXSVRJOBID + PBS_MAXSERVERNAME + PBS_MAXPORTNUM + PBS_MAXJOBARRAYLEN + 2) /* client job id size */
-#define PBS_MAXDEST  1024  /* destination size -- increased from 256 */
-#define PBS_MAXROUTEDEST (PBS_MAXQUEUENAME + PBS_MAXSERVERNAME + PBS_MAXPORTNUM + 2) /* destination size */
-#define PBS_USE_IFF  1 /* pbs_connect() to call pbs_iff */
-#define PBS_INTERACTIVE  1 /* Support of Interactive jobs */
-#define PBS_TERM_BUF_SZ  80 /* Interactive term buffer size */
-#define PBS_TERM_CCA  6 /* Interactive term cntl char array */
-
-/* constants used to indicate version of job ji_qs struct written to disk.
-   starting with 2.4.0 we stopped encoding the torque version number into the 
-   hex value e.g. 0x00020300 for torque v2.3.0. Now we just increment a value 
-   which is added to the last version encoded that way */
-#define PBS_QS_VERSION_BASE 0x00020300 /* magic number do not change */
-#define PBS_QS_VERSION_INT 1 /* increment this version number with every change to the ji_qs struct */
-#define PBS_QS_VERSION  (PBS_QS_VERSION_BASE + PBS_QS_VERSION_INT) /* version number saved in the ji_qs struct */
-
-/* someday the PBS_*_PORT definition will go away and only the */
-/* PBS_*_SERVICE_NAME form will be used, maybe   */
-
-#define PBS_BATCH_SERVICE_NAME  "pbs"
-
-#ifndef PBS_BATCH_SERVICE_PORT
-#define PBS_BATCH_SERVICE_PORT  15001
-#endif /* PBS_BATCH_SERVICE_PORT */
-
-#define PBS_BATCH_SERVICE_NAME_DIS "pbs_dis" /* new DIS port   */
-
-#ifndef PBS_BATCH_SERVICE_PORT_DIS
-#define PBS_BATCH_SERVICE_PORT_DIS 15001  /* new DIS port   */
-#endif /* PBS_BATCH_SERVICE_PORT_DIS */
-
-#define PBS_MOM_SERVICE_NAME  "pbs_mom"
-
-#ifndef PBS_MOM_SERVICE_PORT
-#define PBS_MOM_SERVICE_PORT  15002
-#endif /* PBS_MOM_SERVICE_PORT */
-
-#define PBS_MANAGER_SERVICE_NAME "pbs_resmon"
-
-#ifndef PBS_MANAGER_SERVICE_PORT
-#define PBS_MANAGER_SERVICE_PORT 15003
-#endif /* PBS_MANAGER_SERVICE_PORT */
-
-#define PBS_SCHEDULER_SERVICE_NAME "pbs_sched"
-
-#ifndef PBS_SCHEDULER_SERVICE_PORT
-#define PBS_SCHEDULER_SERVICE_PORT 15004
-#endif /* PBS_SCHEDULER_SERVICE_PORT */
-
-/*
- * Other misc checkpoint defines
- */
-#define CHECKPOINTHOLD "checkpoint_hold"
-#define CHECKPOINTCONT "checkpoint_cont"
-#define MOM_DEFAULT_CHECKPOINT_DIR "$MOMDEFAULTCHECKPOINTDIR$"
-
-
-enum batch_op { SET, UNSET, INCR, DECR, EQ, NE, GE, GT, LE, LT, DFLT, MERGE };
-
-/*
-** This structure is identical to attropl so they can be used
-** interchangably.  The op field is not used.
-*/
-
-struct attrl
-  {
-  struct attrl  *next;
-  char          *name;
-  char          *resource;
-  char          *value;
-  enum batch_op  op; /* not used */
-  };
-
-struct attropl
-  {
-  struct attropl *next;
-  char   *name;
-  char   *resource;
-  char   *value;
-  enum batch_op   op;
-  };
-
-struct batch_status
-  {
-  struct batch_status *next;
-  char                *name;
-  struct attrl        *attribs;
-  char                *text;
-  };
-
-
-
-
-/* Resource Reservation Information */
-typedef int resource_t;  /* resource reservation handle */
-
-#define RESOURCE_T_NULL  (resource_t)0
-#define RESOURCE_T_ALL  (resource_t)-1
-
-extern int pbs_errno;  /* error number */
-
-extern char *pbs_server; /* server attempted to connect | connected to */
-/* see pbs_connect(3B)         */
-
-extern char *avail(int connect, char *resc);
-extern int pbs_asyrunjob(int c, char *jobid, char *location, char *extend);
-extern int pbs_alterjob(int connect, char *job_id, struct attrl *ATTRL, char *extend);
-extern int pbs_connect(char *server);
-extern int pbs_query_max_connections(void);
-extern char *pbs_default(void);
-
-extern int pbs_deljob(int connect, char *job_id, char *extend);
-extern int pbs_disconnect(int connect);
-extern char *pbs_geterrmsg(int connect);
-extern int pbs_holdjob(int connect, char *job_id, char *hold_type, char *extend);
-extern char *pbs_locjob(int connect, char *job_id, char *extend);
-
-extern int pbs_manager(int connect, int command, int obj_type, char *obj_name,
-	struct attropl *ATTROPL, char *extend);
-	
-extern int pbs_movejob(int connect, char *job_id, char *destination, char *extend);
-	
-extern int pbs_msgjob(int connect, char *job_id, int file, char *message, char *extend);
-
-extern int pbs_orderjob (int connect, char *job1, char *job2, char *extend);
-
-extern int pbs_rescquery(int connect, char **CHAR, int nresc, int *avail,
-	int *alloc, int *resv, int *down);
-
-extern int pbs_rescreserve(int connect, char **CHAR, int nresc, resource_t *phandle);
-
-extern int pbs_rescrelease(int connect, resource_t rhandle);
-
-extern int pbs_rerunjob(int connect, char *job_id, char *extend);
-
-extern int pbs_rlsjob(int connect, char *job_id, char *hold_type, char *extend);
-
-extern int pbs_runjob(int connect, char *jobid, char *loc, char *extend);
-
-extern char **pbs_selectjob(int connect, struct attropl *ATTROPL, char *extend);
-
-extern int pbs_sigjob(int connect, char *job_id, char *signal, char *extend);
-
-
-extern void pbs_statfree(struct batch_status *BATCH_STATUS);
-
-// Function does not exitst Bas van der Vlies
-// 
-// extern struct batch_status *pbs_statdest(int connect, char *id, char *extend);
-
-extern struct batch_status *pbs_statjob(int connect, char *id, struct attrl *ATTRL, char *extend);
-
-extern struct batch_status *pbs_selstat(int connect, struct attropl *ATTROPL, char *extend);
-
-extern struct batch_status *pbs_statque(int connect, char *id, struct attrl *ATTRL, char *extend); 
-
-extern struct batch_status *pbs_statserver(int connect, struct attrl *ATTRL, char *extend);
-
-extern struct batch_status *pbs_statnode(int connect, char *id, struct attrl *ATTRL, char *extend);
-
-extern char *pbs_submit(int connect, struct attropl *ATTROPL, char *script,
-	char *destination, char *extend);
-	
-extern int pbs_terminate(int connect, int manner, char *extend);
-
-extern int totpool(int connect, int update);
-
-extern int usepool(int connect, int update);
-
-#ifdef TORQUE_2_4
-extern char *pbs_fbserver(void);
-extern char *pbs_get_server_list(void);
-extern int pbs_sigjobasync(int connect, char *job_id, char *signal, char *extend);
-extern int pbs_alterjob_async(int connect, char *job_id, struct attrl *ATTRL, char *extend);
-extern int pbs_checkpointjob(int connect, char *job_id, char *extend);
-#endif
-
-#endif	/* _PBS_IFL_DEF */
-
-/*  end of pbs_ifl.h  */
Index: trunk/src/pbs_wrap.c
===================================================================
--- trunk/src/pbs_wrap.c	(revision 299)
+++ 	(revision )
@@ -1,8717 +1,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.40
- * 
- * This file is not intended to be easily readable and contains a number of 
- * coding conventions designed to improve portability and efficiency. Do not make
- * changes to this file unless you know what you are doing--modify the SWIG 
- * interface file instead. 
- * ----------------------------------------------------------------------------- */
-
-#define SWIGPYTHON
-#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
-
-/* -----------------------------------------------------------------------------
- *  This section contains generic SWIG labels for method/variable
- *  declarations/attributes, and other compiler dependent labels.
- * ----------------------------------------------------------------------------- */
-
-/* template workaround for compilers that cannot correctly implement the C++ standard */
-#ifndef SWIGTEMPLATEDISAMBIGUATOR
-# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
-#  define SWIGTEMPLATEDISAMBIGUATOR template
-# elif defined(__HP_aCC)
-/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
-/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
-#  define SWIGTEMPLATEDISAMBIGUATOR template
-# else
-#  define SWIGTEMPLATEDISAMBIGUATOR
-# endif
-#endif
-
-/* inline attribute */
-#ifndef SWIGINLINE
-# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
-#   define SWIGINLINE inline
-# else
-#   define SWIGINLINE
-# endif
-#endif
-
-/* attribute recognised by some compilers to avoid 'unused' warnings */
-#ifndef SWIGUNUSED
-# if defined(__GNUC__)
-#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-#     define SWIGUNUSED __attribute__ ((__unused__)) 
-#   else
-#     define SWIGUNUSED
-#   endif
-# elif defined(__ICC)
-#   define SWIGUNUSED __attribute__ ((__unused__)) 
-# else
-#   define SWIGUNUSED 
-# endif
-#endif
-
-#ifndef SWIG_MSC_UNSUPPRESS_4505
-# if defined(_MSC_VER)
-#   pragma warning(disable : 4505) /* unreferenced local function has been removed */
-# endif 
-#endif
-
-#ifndef SWIGUNUSEDPARM
-# ifdef __cplusplus
-#   define SWIGUNUSEDPARM(p)
-# else
-#   define SWIGUNUSEDPARM(p) p SWIGUNUSED 
-# endif
-#endif
-
-/* internal SWIG method */
-#ifndef SWIGINTERN
-# define SWIGINTERN static SWIGUNUSED
-#endif
-
-/* internal inline SWIG method */
-#ifndef SWIGINTERNINLINE
-# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
-#endif
-
-/* exporting methods */
-#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
-#  ifndef GCC_HASCLASSVISIBILITY
-#    define GCC_HASCLASSVISIBILITY
-#  endif
-#endif
-
-#ifndef SWIGEXPORT
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-#   if defined(STATIC_LINKED)
-#     define SWIGEXPORT
-#   else
-#     define SWIGEXPORT __declspec(dllexport)
-#   endif
-# else
-#   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
-#     define SWIGEXPORT __attribute__ ((visibility("default")))
-#   else
-#     define SWIGEXPORT
-#   endif
-# endif
-#endif
-
-/* calling conventions for Windows */
-#ifndef SWIGSTDCALL
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-#   define SWIGSTDCALL __stdcall
-# else
-#   define SWIGSTDCALL
-# endif 
-#endif
-
-/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
-#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
-# define _CRT_SECURE_NO_DEPRECATE
-#endif
-
-/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
-#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
-# define _SCL_SECURE_NO_DEPRECATE
-#endif
-
-
-
-/* Python.h has to appear first */
-#include <Python.h>
-
-/* -----------------------------------------------------------------------------
- * swigrun.swg
- *
- * This file contains generic C API SWIG runtime support for pointer
- * type checking.
- * ----------------------------------------------------------------------------- */
-
-/* This should only be incremented when either the layout of swig_type_info changes,
-   or for whatever reason, the runtime changes incompatibly */
-#define SWIG_RUNTIME_VERSION "4"
-
-/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
-#ifdef SWIG_TYPE_TABLE
-# define SWIG_QUOTE_STRING(x) #x
-# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
-# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
-#else
-# define SWIG_TYPE_TABLE_NAME
-#endif
-
-/*
-  You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
-  creating a static or dynamic library from the SWIG runtime code.
-  In 99.9% of the cases, SWIG just needs to declare them as 'static'.
-  
-  But only do this if strictly necessary, ie, if you have problems
-  with your compiler or suchlike.
-*/
-
-#ifndef SWIGRUNTIME
-# define SWIGRUNTIME SWIGINTERN
-#endif
-
-#ifndef SWIGRUNTIMEINLINE
-# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
-#endif
-
-/*  Generic buffer size */
-#ifndef SWIG_BUFFER_SIZE
-# define SWIG_BUFFER_SIZE 1024
-#endif
-
-/* Flags for pointer conversions */
-#define SWIG_POINTER_DISOWN        0x1
-#define SWIG_CAST_NEW_MEMORY       0x2
-
-/* Flags for new pointer objects */
-#define SWIG_POINTER_OWN           0x1
-
-
-/* 
-   Flags/methods for returning states.
-   
-   The SWIG conversion methods, as ConvertPtr, return and integer 
-   that tells if the conversion was successful or not. And if not,
-   an error code can be returned (see swigerrors.swg for the codes).
-   
-   Use the following macros/flags to set or process the returning
-   states.
-   
-   In old versions of SWIG, code such as the following was usually written:
-
-     if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
-       // success code
-     } else {
-       //fail code
-     }
-
-   Now you can be more explicit:
-
-    int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
-    if (SWIG_IsOK(res)) {
-      // success code
-    } else {
-      // fail code
-    }
-
-   which is the same really, but now you can also do
-
-    Type *ptr;
-    int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
-    if (SWIG_IsOK(res)) {
-      // success code
-      if (SWIG_IsNewObj(res) {
-        ...
-	delete *ptr;
-      } else {
-        ...
-      }
-    } else {
-      // fail code
-    }
-    
-   I.e., now SWIG_ConvertPtr can return new objects and you can
-   identify the case and take care of the deallocation. Of course that
-   also requires SWIG_ConvertPtr to return new result values, such as
-
-      int SWIG_ConvertPtr(obj, ptr,...) {         
-        if (<obj is ok>) {			       
-          if (<need new object>) {		       
-            *ptr = <ptr to new allocated object>; 
-            return SWIG_NEWOBJ;		       
-          } else {				       
-            *ptr = <ptr to old object>;	       
-            return SWIG_OLDOBJ;		       
-          } 				       
-        } else {				       
-          return SWIG_BADOBJ;		       
-        }					       
-      }
-
-   Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
-   more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
-   SWIG errors code.
-
-   Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
-   allows to return the 'cast rank', for example, if you have this
-
-       int food(double)
-       int fooi(int);
-
-   and you call
- 
-      food(1)   // cast rank '1'  (1 -> 1.0)
-      fooi(1)   // cast rank '0'
-
-   just use the SWIG_AddCast()/SWIG_CheckState()
-*/
-
-#define SWIG_OK                    (0) 
-#define SWIG_ERROR                 (-1)
-#define SWIG_IsOK(r)               (r >= 0)
-#define SWIG_ArgError(r)           ((r != SWIG_ERROR) ? r : SWIG_TypeError)  
-
-/* The CastRankLimit says how many bits are used for the cast rank */
-#define SWIG_CASTRANKLIMIT         (1 << 8)
-/* The NewMask denotes the object was created (using new/malloc) */
-#define SWIG_NEWOBJMASK            (SWIG_CASTRANKLIMIT  << 1)
-/* The TmpMask is for in/out typemaps that use temporal objects */
-#define SWIG_TMPOBJMASK            (SWIG_NEWOBJMASK << 1)
-/* Simple returning values */
-#define SWIG_BADOBJ                (SWIG_ERROR)
-#define SWIG_OLDOBJ                (SWIG_OK)
-#define SWIG_NEWOBJ                (SWIG_OK | SWIG_NEWOBJMASK)
-#define SWIG_TMPOBJ                (SWIG_OK | SWIG_TMPOBJMASK)
-/* Check, add and del mask methods */
-#define SWIG_AddNewMask(r)         (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
-#define SWIG_DelNewMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
-#define SWIG_IsNewObj(r)           (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
-#define SWIG_AddTmpMask(r)         (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
-#define SWIG_DelTmpMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
-#define SWIG_IsTmpObj(r)           (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
-
-/* Cast-Rank Mode */
-#if defined(SWIG_CASTRANK_MODE)
-#  ifndef SWIG_TypeRank
-#    define SWIG_TypeRank             unsigned long
-#  endif
-#  ifndef SWIG_MAXCASTRANK            /* Default cast allowed */
-#    define SWIG_MAXCASTRANK          (2)
-#  endif
-#  define SWIG_CASTRANKMASK          ((SWIG_CASTRANKLIMIT) -1)
-#  define SWIG_CastRank(r)           (r & SWIG_CASTRANKMASK)
-SWIGINTERNINLINE int SWIG_AddCast(int r) { 
-  return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
-}
-SWIGINTERNINLINE int SWIG_CheckState(int r) { 
-  return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; 
-}
-#else /* no cast-rank mode */
-#  define SWIG_AddCast
-#  define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
-#endif
-
-
-#include <string.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef void *(*swig_converter_func)(void *, int *);
-typedef struct swig_type_info *(*swig_dycast_func)(void **);
-
-/* Structure to store information on one type */
-typedef struct swig_type_info {
-  const char             *name;			/* mangled name of this type */
-  const char             *str;			/* human readable name of this type */
-  swig_dycast_func        dcast;		/* dynamic cast function down a hierarchy */
-  struct swig_cast_info  *cast;			/* linked list of types that can cast into this type */
-  void                   *clientdata;		/* language specific type data */
-  int                    owndata;		/* flag if the structure owns the clientdata */
-} swig_type_info;
-
-/* Structure to store a type and conversion function used for casting */
-typedef struct swig_cast_info {
-  swig_type_info         *type;			/* pointer to type that is equivalent to this type */
-  swig_converter_func     converter;		/* function to cast the void pointers */
-  struct swig_cast_info  *next;			/* pointer to next cast in linked list */
-  struct swig_cast_info  *prev;			/* pointer to the previous cast */
-} swig_cast_info;
-
-/* Structure used to store module information
- * Each module generates one structure like this, and the runtime collects
- * all of these structures and stores them in a circularly linked list.*/
-typedef struct swig_module_info {
-  swig_type_info         **types;		/* Array of pointers to swig_type_info structures that are in this module */
-  size_t                 size;		        /* Number of types in this module */
-  struct swig_module_info *next;		/* Pointer to next element in circularly linked list */
-  swig_type_info         **type_initial;	/* Array of initially generated type structures */
-  swig_cast_info         **cast_initial;	/* Array of initially generated casting structures */
-  void                    *clientdata;		/* Language specific module data */
-} swig_module_info;
-
-/* 
-  Compare two type names skipping the space characters, therefore
-  "char*" == "char *" and "Class<int>" == "Class<int >", etc.
-
-  Return 0 when the two name types are equivalent, as in
-  strncmp, but skipping ' '.
-*/
-SWIGRUNTIME int
-SWIG_TypeNameComp(const char *f1, const char *l1,
-		  const char *f2, const char *l2) {
-  for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
-    while ((*f1 == ' ') && (f1 != l1)) ++f1;
-    while ((*f2 == ' ') && (f2 != l2)) ++f2;
-    if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
-  }
-  return (int)((l1 - f1) - (l2 - f2));
-}
-
-/*
-  Check type equivalence in a name list like <name1>|<name2>|...
-  Return 0 if not equal, 1 if equal
-*/
-SWIGRUNTIME int
-SWIG_TypeEquiv(const char *nb, const char *tb) {
-  int equiv = 0;
-  const char* te = tb + strlen(tb);
-  const char* ne = nb;
-  while (!equiv && *ne) {
-    for (nb = ne; *ne; ++ne) {
-      if (*ne == '|') break;
-    }
-    equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
-    if (*ne) ++ne;
-  }
-  return equiv;
-}
-
-/*
-  Check type equivalence in a name list like <name1>|<name2>|...
-  Return 0 if equal, -1 if nb < tb, 1 if nb > tb
-*/
-SWIGRUNTIME int
-SWIG_TypeCompare(const char *nb, const char *tb) {
-  int equiv = 0;
-  const char* te = tb + strlen(tb);
-  const char* ne = nb;
-  while (!equiv && *ne) {
-    for (nb = ne; *ne; ++ne) {
-      if (*ne == '|') break;
-    }
-    equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
-    if (*ne) ++ne;
-  }
-  return equiv;
-}
-
-
-/*
-  Check the typename
-*/
-SWIGRUNTIME swig_cast_info *
-SWIG_TypeCheck(const char *c, swig_type_info *ty) {
-  if (ty) {
-    swig_cast_info *iter = ty->cast;
-    while (iter) {
-      if (strcmp(iter->type->name, c) == 0) {
-        if (iter == ty->cast)
-          return iter;
-        /* Move iter to the top of the linked list */
-        iter->prev->next = iter->next;
-        if (iter->next)
-          iter->next->prev = iter->prev;
-        iter->next = ty->cast;
-        iter->prev = 0;
-        if (ty->cast) ty->cast->prev = iter;
-        ty->cast = iter;
-        return iter;
-      }
-      iter = iter->next;
-    }
-  }
-  return 0;
-}
-
-/* 
-  Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
-*/
-SWIGRUNTIME swig_cast_info *
-SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
-  if (ty) {
-    swig_cast_info *iter = ty->cast;
-    while (iter) {
-      if (iter->type == from) {
-        if (iter == ty->cast)
-          return iter;
-        /* Move iter to the top of the linked list */
-        iter->prev->next = iter->next;
-        if (iter->next)
-          iter->next->prev = iter->prev;
-        iter->next = ty->cast;
-        iter->prev = 0;
-        if (ty->cast) ty->cast->prev = iter;
-        ty->cast = iter;
-        return iter;
-      }
-      iter = iter->next;
-    }
-  }
-  return 0;
-}
-
-/*
-  Cast a pointer up an inheritance hierarchy
-*/
-SWIGRUNTIMEINLINE void *
-SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
-  return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
-}
-
-/* 
-   Dynamic pointer casting. Down an inheritance hierarchy
-*/
-SWIGRUNTIME swig_type_info *
-SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
-  swig_type_info *lastty = ty;
-  if (!ty || !ty->dcast) return ty;
-  while (ty && (ty->dcast)) {
-    ty = (*ty->dcast)(ptr);
-    if (ty) lastty = ty;
-  }
-  return lastty;
-}
-
-/*
-  Return the name associated with this type
-*/
-SWIGRUNTIMEINLINE const char *
-SWIG_TypeName(const swig_type_info *ty) {
-  return ty->name;
-}
-
-/*
-  Return the pretty name associated with this type,
-  that is an unmangled type name in a form presentable to the user.
-*/
-SWIGRUNTIME const char *
-SWIG_TypePrettyName(const swig_type_info *type) {
-  /* The "str" field contains the equivalent pretty names of the
-     type, separated by vertical-bar characters.  We choose
-     to print the last name, as it is often (?) the most
-     specific. */
-  if (!type) return NULL;
-  if (type->str != NULL) {
-    const char *last_name = type->str;
-    const char *s;
-    for (s = type->str; *s; s++)
-      if (*s == '|') last_name = s+1;
-    return last_name;
-  }
-  else
-    return type->name;
-}
-
-/* 
-   Set the clientdata field for a type
-*/
-SWIGRUNTIME void
-SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
-  swig_cast_info *cast = ti->cast;
-  /* if (ti->clientdata == clientdata) return; */
-  ti->clientdata = clientdata;
-  
-  while (cast) {
-    if (!cast->converter) {
-      swig_type_info *tc = cast->type;
-      if (!tc->clientdata) {
-	SWIG_TypeClientData(tc, clientdata);
-      }
-    }    
-    cast = cast->next;
-  }
-}
-SWIGRUNTIME void
-SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
-  SWIG_TypeClientData(ti, clientdata);
-  ti->owndata = 1;
-}
-  
-/*
-  Search for a swig_type_info structure only by mangled name
-  Search is a O(log #types)
-  
-  We start searching at module start, and finish searching when start == end.  
-  Note: if start == end at the beginning of the function, we go all the way around
-  the circular list.
-*/
-SWIGRUNTIME swig_type_info *
-SWIG_MangledTypeQueryModule(swig_module_info *start, 
-                            swig_module_info *end, 
-		            const char *name) {
-  swig_module_info *iter = start;
-  do {
-    if (iter->size) {
-      register size_t l = 0;
-      register size_t r = iter->size - 1;
-      do {
-	/* since l+r >= 0, we can (>> 1) instead (/ 2) */
-	register size_t i = (l + r) >> 1; 
-	const char *iname = iter->types[i]->name;
-	if (iname) {
-	  register int compare = strcmp(name, iname);
-	  if (compare == 0) {	    
-	    return iter->types[i];
-	  } else if (compare < 0) {
-	    if (i) {
-	      r = i - 1;
-	    } else {
-	      break;
-	    }
-	  } else if (compare > 0) {
-	    l = i + 1;
-	  }
-	} else {
-	  break; /* should never happen */
-	}
-      } while (l <= r);
-    }
-    iter = iter->next;
-  } while (iter != end);
-  return 0;
-}
-
-/*
-  Search for a swig_type_info structure for either a mangled name or a human readable name.
-  It first searches the mangled names of the types, which is a O(log #types)
-  If a type is not found it then searches the human readable names, which is O(#types).
-  
-  We start searching at module start, and finish searching when start == end.  
-  Note: if start == end at the beginning of the function, we go all the way around
-  the circular list.
-*/
-SWIGRUNTIME swig_type_info *
-SWIG_TypeQueryModule(swig_module_info *start, 
-                     swig_module_info *end, 
-		     const char *name) {
-  /* STEP 1: Search the name field using binary search */
-  swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
-  if (ret) {
-    return ret;
-  } else {
-    /* STEP 2: If the type hasn't been found, do a complete search
-       of the str field (the human readable name) */
-    swig_module_info *iter = start;
-    do {
-      register size_t i = 0;
-      for (; i < iter->size; ++i) {
-	if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
-	  return iter->types[i];
-      }
-      iter = iter->next;
-    } while (iter != end);
-  }
-  
-  /* neither found a match */
-  return 0;
-}
-
-/* 
-   Pack binary data into a string
-*/
-SWIGRUNTIME char *
-SWIG_PackData(char *c, void *ptr, size_t sz) {
-  static const char hex[17] = "0123456789abcdef";
-  register const unsigned char *u = (unsigned char *) ptr;
-  register const unsigned char *eu =  u + sz;
-  for (; u != eu; ++u) {
-    register unsigned char uu = *u;
-    *(c++) = hex[(uu & 0xf0) >> 4];
-    *(c++) = hex[uu & 0xf];
-  }
-  return c;
-}
-
-/* 
-   Unpack binary data from a string
-*/
-SWIGRUNTIME const char *
-SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
-  register unsigned char *u = (unsigned char *) ptr;
-  register const unsigned char *eu = u + sz;
-  for (; u != eu; ++u) {
-    register char d = *(c++);
-    register unsigned char uu;
-    if ((d >= '0') && (d <= '9'))
-      uu = ((d - '0') << 4);
-    else if ((d >= 'a') && (d <= 'f'))
-      uu = ((d - ('a'-10)) << 4);
-    else 
-      return (char *) 0;
-    d = *(c++);
-    if ((d >= '0') && (d <= '9'))
-      uu |= (d - '0');
-    else if ((d >= 'a') && (d <= 'f'))
-      uu |= (d - ('a'-10));
-    else 
-      return (char *) 0;
-    *u = uu;
-  }
-  return c;
-}
-
-/* 
-   Pack 'void *' into a string buffer.
-*/
-SWIGRUNTIME char *
-SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
-  char *r = buff;
-  if ((2*sizeof(void *) + 2) > bsz) return 0;
-  *(r++) = '_';
-  r = SWIG_PackData(r,&ptr,sizeof(void *));
-  if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
-  strcpy(r,name);
-  return buff;
-}
-
-SWIGRUNTIME const char *
-SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
-  if (*c != '_') {
-    if (strcmp(c,"NULL") == 0) {
-      *ptr = (void *) 0;
-      return name;
-    } else {
-      return 0;
-    }
-  }
-  return SWIG_UnpackData(++c,ptr,sizeof(void *));
-}
-
-SWIGRUNTIME char *
-SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
-  char *r = buff;
-  size_t lname = (name ? strlen(name) : 0);
-  if ((2*sz + 2 + lname) > bsz) return 0;
-  *(r++) = '_';
-  r = SWIG_PackData(r,ptr,sz);
-  if (lname) {
-    strncpy(r,name,lname+1);
-  } else {
-    *r = 0;
-  }
-  return buff;
-}
-
-SWIGRUNTIME const char *
-SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
-  if (*c != '_') {
-    if (strcmp(c,"NULL") == 0) {
-      memset(ptr,0,sz);
-      return name;
-    } else {
-      return 0;
-    }
-  }
-  return SWIG_UnpackData(++c,ptr,sz);
-}
-
-#ifdef __cplusplus
-}
-#endif
-
-/*  Errors in SWIG */
-#define  SWIG_UnknownError    	   -1 
-#define  SWIG_IOError        	   -2 
-#define  SWIG_RuntimeError   	   -3 
-#define  SWIG_IndexError     	   -4 
-#define  SWIG_TypeError      	   -5 
-#define  SWIG_DivisionByZero 	   -6 
-#define  SWIG_OverflowError  	   -7 
-#define  SWIG_SyntaxError    	   -8 
-#define  SWIG_ValueError     	   -9 
-#define  SWIG_SystemError    	   -10
-#define  SWIG_AttributeError 	   -11
-#define  SWIG_MemoryError    	   -12 
-#define  SWIG_NullReferenceError   -13
-
-
-
-/* Compatibility macros for Python 3 */
-#if PY_VERSION_HEX >= 0x03000000
-
-#define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
-#define PyInt_Check(x) PyLong_Check(x)
-#define PyInt_AsLong(x) PyLong_AsLong(x)
-#define PyInt_FromLong(x) PyLong_FromLong(x)
-#define PyString_Format(fmt, args)  PyUnicode_Format(fmt, args)
-
-#endif
-
-#ifndef Py_TYPE
-#  define Py_TYPE(op) ((op)->ob_type)
-#endif
-
-/* SWIG APIs for compatibility of both Python 2 & 3 */
-
-#if PY_VERSION_HEX >= 0x03000000
-#  define SWIG_Python_str_FromFormat PyUnicode_FromFormat
-#else
-#  define SWIG_Python_str_FromFormat PyString_FromFormat
-#endif
-
-
-/* Warning: This function will allocate a new string in Python 3,
- * so please call SWIG_Python_str_DelForPy3(x) to free the space.
- */
-SWIGINTERN char*
-SWIG_Python_str_AsChar(PyObject *str)
-{
-#if PY_VERSION_HEX >= 0x03000000
-  char *cstr;
-  char *newstr;
-  Py_ssize_t len;
-  str = PyUnicode_AsUTF8String(str);
-  PyBytes_AsStringAndSize(str, &cstr, &len);
-  newstr = (char *) malloc(len+1);
-  memcpy(newstr, cstr, len+1);
-  Py_XDECREF(str);
-  return newstr;
-#else
-  return PyString_AsString(str);
-#endif
-}
-
-#if PY_VERSION_HEX >= 0x03000000
-#  define SWIG_Python_str_DelForPy3(x) free( (void*) (x) )
-#else
-#  define SWIG_Python_str_DelForPy3(x) 
-#endif
-
-
-SWIGINTERN PyObject*
-SWIG_Python_str_FromChar(const char *c)
-{
-#if PY_VERSION_HEX >= 0x03000000
-  return PyUnicode_FromString(c); 
-#else
-  return PyString_FromString(c);
-#endif
-}
-
-/* Add PyOS_snprintf for old Pythons */
-#if PY_VERSION_HEX < 0x02020000
-# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
-#  define PyOS_snprintf _snprintf
-# else
-#  define PyOS_snprintf snprintf
-# endif
-#endif
-
-/* A crude PyString_FromFormat implementation for old Pythons */
-#if PY_VERSION_HEX < 0x02020000
-
-#ifndef SWIG_PYBUFFER_SIZE
-# define SWIG_PYBUFFER_SIZE 1024
-#endif
-
-static PyObject *
-PyString_FromFormat(const char *fmt, ...) {
-  va_list ap;
-  char buf[SWIG_PYBUFFER_SIZE * 2];
-  int res;
-  va_start(ap, fmt);
-  res = vsnprintf(buf, sizeof(buf), fmt, ap);
-  va_end(ap);
-  return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
-}
-#endif
-
-/* Add PyObject_Del for old Pythons */
-#if PY_VERSION_HEX < 0x01060000
-# define PyObject_Del(op) PyMem_DEL((op))
-#endif
-#ifndef PyObject_DEL
-# define PyObject_DEL PyObject_Del
-#endif
-
-/* A crude PyExc_StopIteration exception for old Pythons */
-#if PY_VERSION_HEX < 0x02020000
-# ifndef PyExc_StopIteration
-#  define PyExc_StopIteration PyExc_RuntimeError
-# endif
-# ifndef PyObject_GenericGetAttr
-#  define PyObject_GenericGetAttr 0
-# endif
-#endif
-
-/* Py_NotImplemented is defined in 2.1 and up. */
-#if PY_VERSION_HEX < 0x02010000
-# ifndef Py_NotImplemented
-#  define Py_NotImplemented PyExc_RuntimeError
-# endif
-#endif
-
-/* A crude PyString_AsStringAndSize implementation for old Pythons */
-#if PY_VERSION_HEX < 0x02010000
-# ifndef PyString_AsStringAndSize
-#  define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
-# endif
-#endif
-
-/* PySequence_Size for old Pythons */
-#if PY_VERSION_HEX < 0x02000000
-# ifndef PySequence_Size
-#  define PySequence_Size PySequence_Length
-# endif
-#endif
-
-/* PyBool_FromLong for old Pythons */
-#if PY_VERSION_HEX < 0x02030000
-static
-PyObject *PyBool_FromLong(long ok)
-{
-  PyObject *result = ok ? Py_True : Py_False;
-  Py_INCREF(result);
-  return result;
-}
-#endif
-
-/* Py_ssize_t for old Pythons */
-/* This code is as recommended by: */
-/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */
-#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
-typedef int Py_ssize_t;
-# define PY_SSIZE_T_MAX INT_MAX
-# define PY_SSIZE_T_MIN INT_MIN
-#endif
-
-/* -----------------------------------------------------------------------------
- * error manipulation
- * ----------------------------------------------------------------------------- */
-
-SWIGRUNTIME PyObject*
-SWIG_Python_ErrorType(int code) {
-  PyObject* type = 0;
-  switch(code) {
-  case SWIG_MemoryError:
-    type = PyExc_MemoryError;
-    break;
-  case SWIG_IOError:
-    type = PyExc_IOError;
-    break;
-  case SWIG_RuntimeError:
-    type = PyExc_RuntimeError;
-    break;
-  case SWIG_IndexError:
-    type = PyExc_IndexError;
-    break;
-  case SWIG_TypeError:
-    type = PyExc_TypeError;
-    break;
-  case SWIG_DivisionByZero:
-    type = PyExc_ZeroDivisionError;
-    break;
-  case SWIG_OverflowError:
-    type = PyExc_OverflowError;
-    break;
-  case SWIG_SyntaxError:
-    type = PyExc_SyntaxError;
-    break;
-  case SWIG_ValueError:
-    type = PyExc_ValueError;
-    break;
-  case SWIG_SystemError:
-    type = PyExc_SystemError;
-    break;
-  case SWIG_AttributeError:
-    type = PyExc_AttributeError;
-    break;
-  default:
-    type = PyExc_RuntimeError;
-  }
-  return type;
-}
-
-
-SWIGRUNTIME void
-SWIG_Python_AddErrorMsg(const char* mesg)
-{
-  PyObject *type = 0;
-  PyObject *value = 0;
-  PyObject *traceback = 0;
-
-  if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
-  if (value) {
-    char *tmp;
-    PyObject *old_str = PyObject_Str(value);
-    PyErr_Clear();
-    Py_XINCREF(type);
-
-    PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
-    SWIG_Python_str_DelForPy3(tmp);
-    Py_DECREF(old_str);
-    Py_DECREF(value);
-  } else {
-    PyErr_SetString(PyExc_RuntimeError, mesg);
-  }
-}
-
-#if defined(SWIG_PYTHON_NO_THREADS)
-#  if defined(SWIG_PYTHON_THREADS)
-#    undef SWIG_PYTHON_THREADS
-#  endif
-#endif
-#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
-#  if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
-#    if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
-#      define SWIG_PYTHON_USE_GIL
-#    endif
-#  endif
-#  if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
-#    ifndef SWIG_PYTHON_INITIALIZE_THREADS
-#     define SWIG_PYTHON_INITIALIZE_THREADS  PyEval_InitThreads() 
-#    endif
-#    ifdef __cplusplus /* C++ code */
-       class SWIG_Python_Thread_Block {
-         bool status;
-         PyGILState_STATE state;
-       public:
-         void end() { if (status) { PyGILState_Release(state); status = false;} }
-         SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
-         ~SWIG_Python_Thread_Block() { end(); }
-       };
-       class SWIG_Python_Thread_Allow {
-         bool status;
-         PyThreadState *save;
-       public:
-         void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
-         SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
-         ~SWIG_Python_Thread_Allow() { end(); }
-       };
-#      define SWIG_PYTHON_THREAD_BEGIN_BLOCK   SWIG_Python_Thread_Block _swig_thread_block
-#      define SWIG_PYTHON_THREAD_END_BLOCK     _swig_thread_block.end()
-#      define SWIG_PYTHON_THREAD_BEGIN_ALLOW   SWIG_Python_Thread_Allow _swig_thread_allow
-#      define SWIG_PYTHON_THREAD_END_ALLOW     _swig_thread_allow.end()
-#    else /* C code */
-#      define SWIG_PYTHON_THREAD_BEGIN_BLOCK   PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
-#      define SWIG_PYTHON_THREAD_END_BLOCK     PyGILState_Release(_swig_thread_block)
-#      define SWIG_PYTHON_THREAD_BEGIN_ALLOW   PyThreadState *_swig_thread_allow = PyEval_SaveThread()
-#      define SWIG_PYTHON_THREAD_END_ALLOW     PyEval_RestoreThread(_swig_thread_allow)
-#    endif
-#  else /* Old thread way, not implemented, user must provide it */
-#    if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
-#      define SWIG_PYTHON_INITIALIZE_THREADS
-#    endif
-#    if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
-#      define SWIG_PYTHON_THREAD_BEGIN_BLOCK
-#    endif
-#    if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
-#      define SWIG_PYTHON_THREAD_END_BLOCK
-#    endif
-#    if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
-#      define SWIG_PYTHON_THREAD_BEGIN_ALLOW
-#    endif
-#    if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
-#      define SWIG_PYTHON_THREAD_END_ALLOW
-#    endif
-#  endif
-#else /* No thread support */
-#  define SWIG_PYTHON_INITIALIZE_THREADS
-#  define SWIG_PYTHON_THREAD_BEGIN_BLOCK
-#  define SWIG_PYTHON_THREAD_END_BLOCK
-#  define SWIG_PYTHON_THREAD_BEGIN_ALLOW
-#  define SWIG_PYTHON_THREAD_END_ALLOW
-#endif
-
-/* -----------------------------------------------------------------------------
- * Python API portion that goes into the runtime
- * ----------------------------------------------------------------------------- */
-
-#ifdef __cplusplus
-extern "C" {
-#if 0
-} /* cc-mode */
-#endif
-#endif
-
-/* -----------------------------------------------------------------------------
- * Constant declarations
- * ----------------------------------------------------------------------------- */
-
-/* Constant Types */
-#define SWIG_PY_POINTER 4
-#define SWIG_PY_BINARY  5
-
-/* Constant information structure */
-typedef struct swig_const_info {
-  int type;
-  char *name;
-  long lvalue;
-  double dvalue;
-  void   *pvalue;
-  swig_type_info **ptype;
-} swig_const_info;
-
-
-/* -----------------------------------------------------------------------------
- * Wrapper of PyInstanceMethod_New() used in Python 3
- * It is exported to the generated module, used for -fastproxy
- * ----------------------------------------------------------------------------- */
-SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *self, PyObject *func)
-{
-#if PY_VERSION_HEX >= 0x03000000
-  return PyInstanceMethod_New(func);
-#else
-  return NULL;
-#endif
-}
-
-#ifdef __cplusplus
-#if 0
-{ /* cc-mode */
-#endif
-}
-#endif
-
-
-/* -----------------------------------------------------------------------------
- * See the LICENSE file for information on copyright, usage and redistribution
- * of SWIG, and the README file for authors - http://www.swig.org/release.html.
- *
- * pyrun.swg
- *
- * This file contains the runtime support for Python modules
- * and includes code for managing global variables and pointer
- * type checking.
- *
- * ----------------------------------------------------------------------------- */
-
-/* Common SWIG API */
-
-/* for raw pointers */
-#define SWIG_Python_ConvertPtr(obj, pptr, type, flags)  SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
-#define SWIG_ConvertPtr(obj, pptr, type, flags)         SWIG_Python_ConvertPtr(obj, pptr, type, flags)
-#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own)  SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
-#define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(ptr, type, flags)
-#define SWIG_CheckImplicit(ty)                          SWIG_Python_CheckImplicit(ty) 
-#define SWIG_AcquirePtr(ptr, src)                       SWIG_Python_AcquirePtr(ptr, src)
-#define swig_owntype                                    int
-
-/* for raw packed data */
-#define SWIG_ConvertPacked(obj, ptr, sz, ty)            SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
-#define SWIG_NewPackedObj(ptr, sz, type)                SWIG_Python_NewPackedObj(ptr, sz, type)
-
-/* for class or struct pointers */
-#define SWIG_ConvertInstance(obj, pptr, type, flags)    SWIG_ConvertPtr(obj, pptr, type, flags)
-#define SWIG_NewInstanceObj(ptr, type, flags)           SWIG_NewPointerObj(ptr, type, flags)
-
-/* for C or C++ function pointers */
-#define SWIG_ConvertFunctionPtr(obj, pptr, type)        SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
-#define SWIG_NewFunctionPtrObj(ptr, type)               SWIG_Python_NewPointerObj(ptr, type, 0)
-
-/* for C++ member pointers, ie, member methods */
-#define SWIG_ConvertMember(obj, ptr, sz, ty)            SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
-#define SWIG_NewMemberObj(ptr, sz, type)                SWIG_Python_NewPackedObj(ptr, sz, type)
-
-
-/* Runtime API */
-
-#define SWIG_GetModule(clientdata)                      SWIG_Python_GetModule()
-#define SWIG_SetModule(clientdata, pointer)             SWIG_Python_SetModule(pointer)
-#define SWIG_NewClientData(obj)                         SwigPyClientData_New(obj)
-
-#define SWIG_SetErrorObj                                SWIG_Python_SetErrorObj                            
-#define SWIG_SetErrorMsg                        	SWIG_Python_SetErrorMsg				   
-#define SWIG_ErrorType(code)                    	SWIG_Python_ErrorType(code)                        
-#define SWIG_Error(code, msg)            		SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) 
-#define SWIG_fail                        		goto fail					   
-
-
-/* Runtime API implementation */
-
-/* Error manipulation */
-
-SWIGINTERN void 
-SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
-  SWIG_PYTHON_THREAD_BEGIN_BLOCK; 
-  PyErr_SetObject(errtype, obj);
-  Py_DECREF(obj);
-  SWIG_PYTHON_THREAD_END_BLOCK;
-}
-
-SWIGINTERN void 
-SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
-  SWIG_PYTHON_THREAD_BEGIN_BLOCK;
-  PyErr_SetString(errtype, (char *) msg);
-  SWIG_PYTHON_THREAD_END_BLOCK;
-}
-
-#define SWIG_Python_Raise(obj, type, desc)  SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
-
-/* Set a constant value */
-
-SWIGINTERN void
-SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {   
-  PyDict_SetItemString(d, (char*) name, obj);
-  Py_DECREF(obj);                            
-}
-
-/* Append a value to the result obj */
-
-SWIGINTERN PyObject*
-SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
-#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
-  if (!result) {
-    result = obj;
-  } else if (result == Py_None) {
-    Py_DECREF(result);
-    result = obj;
-  } else {
-    if (!PyList_Check(result)) {
-      PyObject *o2 = result;
-      result = PyList_New(1);
-      PyList_SetItem(result, 0, o2);
-    }
-    PyList_Append(result,obj);
-    Py_DECREF(obj);
-  }
-  return result;
-#else
-  PyObject*   o2;
-  PyObject*   o3;
-  if (!result) {
-    result = obj;
-  } else if (result == Py_None) {
-    Py_DECREF(result);
-    result = obj;
-  } else {
-    if (!PyTuple_Check(result)) {
-      o2 = result;
-      result = PyTuple_New(1);
-      PyTuple_SET_ITEM(result, 0, o2);
-    }
-    o3 = PyTuple_New(1);
-    PyTuple_SET_ITEM(o3, 0, obj);
-    o2 = result;
-    result = PySequence_Concat(o2, o3);
-    Py_DECREF(o2);
-    Py_DECREF(o3);
-  }
-  return result;
-#endif
-}
-
-/* Unpack the argument tuple */
-
-SWIGINTERN int
-SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
-{
-  if (!args) {
-    if (!min && !max) {
-      return 1;
-    } else {
-      PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", 
-		   name, (min == max ? "" : "at least "), (int)min);
-      return 0;
-    }
-  }  
-  if (!PyTuple_Check(args)) {
-    PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
-    return 0;
-  } else {
-    register Py_ssize_t l = PyTuple_GET_SIZE(args);
-    if (l < min) {
-      PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", 
-		   name, (min == max ? "" : "at least "), (int)min, (int)l);
-      return 0;
-    } else if (l > max) {
-      PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", 
-		   name, (min == max ? "" : "at most "), (int)max, (int)l);
-      return 0;
-    } else {
-      register int i;
-      for (i = 0; i < l; ++i) {
-	objs[i] = PyTuple_GET_ITEM(args, i);
-      }
-      for (; l < max; ++l) {
-	objs[l] = 0;
-      }
-      return i + 1;
-    }    
-  }
-}
-
-/* A functor is a function object with one single object argument */
-#if PY_VERSION_HEX >= 0x02020000
-#define SWIG_Python_CallFunctor(functor, obj)	        PyObject_CallFunctionObjArgs(functor, obj, NULL);
-#else
-#define SWIG_Python_CallFunctor(functor, obj)	        PyObject_CallFunction(functor, "O", obj);
-#endif
-
-/*
-  Helper for static pointer initialization for both C and C++ code, for example
-  static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
-*/
-#ifdef __cplusplus
-#define SWIG_STATIC_POINTER(var)  var
-#else
-#define SWIG_STATIC_POINTER(var)  var = 0; if (!var) var
-#endif
-
-/* -----------------------------------------------------------------------------
- * Pointer declarations
- * ----------------------------------------------------------------------------- */
-
-/* Flags for new pointer objects */
-#define SWIG_POINTER_NOSHADOW       (SWIG_POINTER_OWN      << 1)
-#define SWIG_POINTER_NEW            (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
-
-#define SWIG_POINTER_IMPLICIT_CONV  (SWIG_POINTER_DISOWN   << 1)
-
-#ifdef __cplusplus
-extern "C" {
-#if 0
-} /* cc-mode */
-#endif
-#endif
-
-/*  How to access Py_None */
-#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-#  ifndef SWIG_PYTHON_NO_BUILD_NONE
-#    ifndef SWIG_PYTHON_BUILD_NONE
-#      define SWIG_PYTHON_BUILD_NONE
-#    endif
-#  endif
-#endif
-
-#ifdef SWIG_PYTHON_BUILD_NONE
-#  ifdef Py_None
-#   undef Py_None
-#   define Py_None SWIG_Py_None()
-#  endif
-SWIGRUNTIMEINLINE PyObject * 
-_SWIG_Py_None(void)
-{
-  PyObject *none = Py_BuildValue((char*)"");
-  Py_DECREF(none);
-  return none;
-}
-SWIGRUNTIME PyObject * 
-SWIG_Py_None(void)
-{
-  static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
-  return none;
-}
-#endif
-
-/* The python void return value */
-
-SWIGRUNTIMEINLINE PyObject * 
-SWIG_Py_Void(void)
-{
-  PyObject *none = Py_None;
-  Py_INCREF(none);
-  return none;
-}
-
-/* SwigPyClientData */
-
-typedef struct {
-  PyObject *klass;
-  PyObject *newraw;
-  PyObject *newargs;
-  PyObject *destroy;
-  int delargs;
-  int implicitconv;
-} SwigPyClientData;
-
-SWIGRUNTIMEINLINE int 
-SWIG_Python_CheckImplicit(swig_type_info *ty)
-{
-  SwigPyClientData *data = (SwigPyClientData *)ty->clientdata;
-  return data ? data->implicitconv : 0;
-}
-
-SWIGRUNTIMEINLINE PyObject *
-SWIG_Python_ExceptionType(swig_type_info *desc) {
-  SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0;
-  PyObject *klass = data ? data->klass : 0;
-  return (klass ? klass : PyExc_RuntimeError);
-}
-
-
-SWIGRUNTIME SwigPyClientData * 
-SwigPyClientData_New(PyObject* obj)
-{
-  if (!obj) {
-    return 0;
-  } else {
-    SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData));
-    /* the klass element */
-    data->klass = obj;
-    Py_INCREF(data->klass);
-    /* the newraw method and newargs arguments used to create a new raw instance */
-    if (PyClass_Check(obj)) {
-      data->newraw = 0;
-      data->newargs = obj;
-      Py_INCREF(obj);
-    } else {
-#if (PY_VERSION_HEX < 0x02020000)
-      data->newraw = 0;
-#else
-      data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
-#endif
-      if (data->newraw) {
-	Py_INCREF(data->newraw);
-	data->newargs = PyTuple_New(1);
-	PyTuple_SetItem(data->newargs, 0, obj);
-      } else {
-	data->newargs = obj;
-      }
-      Py_INCREF(data->newargs);
-    }
-    /* the destroy method, aka as the C++ delete method */
-    data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
-    if (PyErr_Occurred()) {
-      PyErr_Clear();
-      data->destroy = 0;
-    }
-    if (data->destroy) {
-      int flags;
-      Py_INCREF(data->destroy);
-      flags = PyCFunction_GET_FLAGS(data->destroy);
-#ifdef METH_O
-      data->delargs = !(flags & (METH_O));
-#else
-      data->delargs = 0;
-#endif
-    } else {
-      data->delargs = 0;
-    }
-    data->implicitconv = 0;
-    return data;
-  }
-}
-
-SWIGRUNTIME void 
-SwigPyClientData_Del(SwigPyClientData* data)
-{
-  Py_XDECREF(data->newraw);
-  Py_XDECREF(data->newargs);
-  Py_XDECREF(data->destroy);
-}
-
-/* =============== SwigPyObject =====================*/
-
-typedef struct {
-  PyObject_HEAD
-  void *ptr;
-  swig_type_info *ty;
-  int own;
-  PyObject *next;
-} SwigPyObject;
-
-SWIGRUNTIME PyObject *
-SwigPyObject_long(SwigPyObject *v)
-{
-  return PyLong_FromVoidPtr(v->ptr);
-}
-
-SWIGRUNTIME PyObject *
-SwigPyObject_format(const char* fmt, SwigPyObject *v)
-{
-  PyObject *res = NULL;
-  PyObject *args = PyTuple_New(1);
-  if (args) {
-    if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) {
-      PyObject *ofmt = SWIG_Python_str_FromChar(fmt);
-      if (ofmt) {
-#if PY_VERSION_HEX >= 0x03000000
-	res = PyUnicode_Format(ofmt,args);
-#else
-	res = PyString_Format(ofmt,args);
-#endif
-	Py_DECREF(ofmt);
-      }
-      Py_DECREF(args);
-    }
-  }
-  return res;
-}
-
-SWIGRUNTIME PyObject *
-SwigPyObject_oct(SwigPyObject *v)
-{
-  return SwigPyObject_format("%o",v);
-}
-
-SWIGRUNTIME PyObject *
-SwigPyObject_hex(SwigPyObject *v)
-{
-  return SwigPyObject_format("%x",v);
-}
-
-SWIGRUNTIME PyObject *
-#ifdef METH_NOARGS
-SwigPyObject_repr(SwigPyObject *v)
-#else
-SwigPyObject_repr(SwigPyObject *v, PyObject *args)
-#endif
-{
-  const char *name = SWIG_TypePrettyName(v->ty);
-  PyObject *repr = SWIG_Python_str_FromFormat("<Swig Object of type '%s' at %p>", name, v);
-  if (v->next) {
-#ifdef METH_NOARGS
-    PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
-#else
-    PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args);
-#endif
-#if PY_VERSION_HEX >= 0x03000000
-    PyObject *joined = PyUnicode_Concat(repr, nrep);
-    Py_DecRef(repr);
-    Py_DecRef(nrep);
-    repr = joined;
-#else
-    PyString_ConcatAndDel(&repr,nrep);
-#endif
-  }
-  return repr;  
-}
-
-SWIGRUNTIME int
-SwigPyObject_print(SwigPyObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
-{
-  char *str;
-#ifdef METH_NOARGS
-  PyObject *repr = SwigPyObject_repr(v);
-#else
-  PyObject *repr = SwigPyObject_repr(v, NULL);
-#endif
-  if (repr) {
-    str = SWIG_Python_str_AsChar(repr); 
-    fputs(str, fp);
-    SWIG_Python_str_DelForPy3(str);
-    Py_DECREF(repr);
-    return 0; 
-  } else {
-    return 1; 
-  }
-}
-
-SWIGRUNTIME PyObject *
-SwigPyObject_str(SwigPyObject *v)
-{
-  char result[SWIG_BUFFER_SIZE];
-  return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
-    SWIG_Python_str_FromChar(result) : 0;
-}
-
-SWIGRUNTIME int
-SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
-{
-  void *i = v->ptr;
-  void *j = w->ptr;
-  return (i < j) ? -1 : ((i > j) ? 1 : 0);
-}
-
-/* Added for Python 3.x, would it also be useful for Python 2.x? */
-SWIGRUNTIME PyObject*
-SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
-{
-  PyObject* res;
-  if( op != Py_EQ && op != Py_NE ) {
-    Py_INCREF(Py_NotImplemented);
-    return Py_NotImplemented;
-  }
-  if( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) )
-    res = Py_True;
-  else
-    res = Py_False;
-  Py_INCREF(res);
-  return res;  
-}
-
-
-SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
-
-SWIGRUNTIME PyTypeObject*
-SwigPyObject_type(void) {
-  static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
-  return type;
-}
-
-SWIGRUNTIMEINLINE int
-SwigPyObject_Check(PyObject *op) {
-  return (Py_TYPE(op) == SwigPyObject_type())
-    || (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0);
-}
-
-SWIGRUNTIME PyObject *
-SwigPyObject_New(void *ptr, swig_type_info *ty, int own);
-
-SWIGRUNTIME void
-SwigPyObject_dealloc(PyObject *v)
-{
-  SwigPyObject *sobj = (SwigPyObject *) v;
-  PyObject *next = sobj->next;
-  if (sobj->own == SWIG_POINTER_OWN) {
-    swig_type_info *ty = sobj->ty;
-    SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
-    PyObject *destroy = data ? data->destroy : 0;
-    if (destroy) {
-      /* destroy is always a VARARGS method */
-      PyObject *res;
-      if (data->delargs) {
-	/* we need to create a temporary object to carry the destroy operation */
-	PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
-	res = SWIG_Python_CallFunctor(destroy, tmp);
-	Py_DECREF(tmp);
-      } else {
-	PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
-	PyObject *mself = PyCFunction_GET_SELF(destroy);
-	res = ((*meth)(mself, v));
-      }
-      Py_XDECREF(res);
-    } 
-#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
-    else {
-      const char *name = SWIG_TypePrettyName(ty);
-      printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown"));
-    }
-#endif
-  } 
-  Py_XDECREF(next);
-  PyObject_DEL(v);
-}
-
-SWIGRUNTIME PyObject* 
-SwigPyObject_append(PyObject* v, PyObject* next)
-{
-  SwigPyObject *sobj = (SwigPyObject *) v;
-#ifndef METH_O
-  PyObject *tmp = 0;
-  if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
-  next = tmp;
-#endif
-  if (!SwigPyObject_Check(next)) {
-    return NULL;
-  }
-  sobj->next = next;
-  Py_INCREF(next);
-  return SWIG_Py_Void();
-}
-
-SWIGRUNTIME PyObject* 
-#ifdef METH_NOARGS
-SwigPyObject_next(PyObject* v)
-#else
-SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
-#endif
-{
-  SwigPyObject *sobj = (SwigPyObject *) v;
-  if (sobj->next) {    
-    Py_INCREF(sobj->next);
-    return sobj->next;
-  } else {
-    return SWIG_Py_Void();
-  }
-}
-
-SWIGINTERN PyObject*
-#ifdef METH_NOARGS
-SwigPyObject_disown(PyObject *v)
-#else
-SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
-#endif
-{
-  SwigPyObject *sobj = (SwigPyObject *)v;
-  sobj->own = 0;
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject*
-#ifdef METH_NOARGS
-SwigPyObject_acquire(PyObject *v)
-#else
-SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
-#endif
-{
-  SwigPyObject *sobj = (SwigPyObject *)v;
-  sobj->own = SWIG_POINTER_OWN;
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject*
-SwigPyObject_own(PyObject *v, PyObject *args)
-{
-  PyObject *val = 0;
-#if (PY_VERSION_HEX < 0x02020000)
-  if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
-#else
-  if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) 
-#endif
-    {
-      return NULL;
-    } 
-  else
-    {
-      SwigPyObject *sobj = (SwigPyObject *)v;
-      PyObject *obj = PyBool_FromLong(sobj->own);
-      if (val) {
-#ifdef METH_NOARGS
-	if (PyObject_IsTrue(val)) {
-	  SwigPyObject_acquire(v);
-	} else {
-	  SwigPyObject_disown(v);
-	}
-#else
-	if (PyObject_IsTrue(val)) {
-	  SwigPyObject_acquire(v,args);
-	} else {
-	  SwigPyObject_disown(v,args);
-	}
-#endif
-      } 
-      return obj;
-    }
-}
-
-#ifdef METH_O
-static PyMethodDef
-swigobject_methods[] = {
-  {(char *)"disown",  (PyCFunction)SwigPyObject_disown,  METH_NOARGS,  (char *)"releases ownership of the pointer"},
-  {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS,  (char *)"aquires ownership of the pointer"},
-  {(char *)"own",     (PyCFunction)SwigPyObject_own,     METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
-  {(char *)"append",  (PyCFunction)SwigPyObject_append,  METH_O,       (char *)"appends another 'this' object"},
-  {(char *)"next",    (PyCFunction)SwigPyObject_next,    METH_NOARGS,  (char *)"returns the next 'this' object"},
-  {(char *)"__repr__",(PyCFunction)SwigPyObject_repr,    METH_NOARGS,  (char *)"returns object representation"},
-  {0, 0, 0, 0}  
-};
-#else
-static PyMethodDef
-swigobject_methods[] = {
-  {(char *)"disown",  (PyCFunction)SwigPyObject_disown,  METH_VARARGS,  (char *)"releases ownership of the pointer"},
-  {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS,  (char *)"aquires ownership of the pointer"},
-  {(char *)"own",     (PyCFunction)SwigPyObject_own,     METH_VARARGS,  (char *)"returns/sets ownership of the pointer"},
-  {(char *)"append",  (PyCFunction)SwigPyObject_append,  METH_VARARGS,  (char *)"appends another 'this' object"},
-  {(char *)"next",    (PyCFunction)SwigPyObject_next,    METH_VARARGS,  (char *)"returns the next 'this' object"},
-  {(char *)"__repr__",(PyCFunction)SwigPyObject_repr,   METH_VARARGS,  (char *)"returns object representation"},
-  {0, 0, 0, 0}  
-};
-#endif
-
-#if PY_VERSION_HEX < 0x02020000
-SWIGINTERN PyObject *
-SwigPyObject_getattr(SwigPyObject *sobj,char *name)
-{
-  return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
-}
-#endif
-
-SWIGRUNTIME PyTypeObject*
-_PySwigObject_type(void) {
-  static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
-  
-  static PyNumberMethods SwigPyObject_as_number = {
-    (binaryfunc)0, /*nb_add*/
-    (binaryfunc)0, /*nb_subtract*/
-    (binaryfunc)0, /*nb_multiply*/
-    /* nb_divide removed in Python 3 */
-#if PY_VERSION_HEX < 0x03000000
-    (binaryfunc)0, /*nb_divide*/
-#endif
-    (binaryfunc)0, /*nb_remainder*/
-    (binaryfunc)0, /*nb_divmod*/
-    (ternaryfunc)0,/*nb_power*/
-    (unaryfunc)0,  /*nb_negative*/
-    (unaryfunc)0,  /*nb_positive*/
-    (unaryfunc)0,  /*nb_absolute*/
-    (inquiry)0,    /*nb_nonzero*/
-    0,		   /*nb_invert*/
-    0,		   /*nb_lshift*/
-    0,		   /*nb_rshift*/
-    0,		   /*nb_and*/
-    0,		   /*nb_xor*/
-    0,		   /*nb_or*/
-#if PY_VERSION_HEX < 0x03000000
-    0,   /*nb_coerce*/
-#endif
-    (unaryfunc)SwigPyObject_long, /*nb_int*/
-#if PY_VERSION_HEX < 0x03000000
-    (unaryfunc)SwigPyObject_long, /*nb_long*/
-#else
-    0, /*nb_reserved*/
-#endif
-    (unaryfunc)0,                 /*nb_float*/
-#if PY_VERSION_HEX < 0x03000000
-    (unaryfunc)SwigPyObject_oct,  /*nb_oct*/
-    (unaryfunc)SwigPyObject_hex,  /*nb_hex*/
-#endif
-#if PY_VERSION_HEX >= 0x03000000 /* 3.0 */
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */
-#elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
-#elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
-#elif PY_VERSION_HEX >= 0x02000000 /* 2.0.0 */
-    0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
-#endif
-  };
-
-  static PyTypeObject swigpyobject_type;  
-  static int type_init = 0;
-  if (!type_init) {
-    const PyTypeObject tmp
-      = {
-	/* PyObject header changed in Python 3 */
-#if PY_VERSION_HEX >= 0x03000000
-	PyVarObject_HEAD_INIT(&PyType_Type, 0)
-#else    
-	PyObject_HEAD_INIT(NULL)
-	0,				    /* ob_size */
-#endif
-	(char *)"SwigPyObject",		    /* tp_name */
-	sizeof(SwigPyObject),		    /* tp_basicsize */
-	0,			            /* tp_itemsize */
-	(destructor)SwigPyObject_dealloc,   /* tp_dealloc */
-	(printfunc)SwigPyObject_print,	    /* tp_print */
-#if PY_VERSION_HEX < 0x02020000
-	(getattrfunc)SwigPyObject_getattr,  /* tp_getattr */ 
-#else
-	(getattrfunc)0,			    /* tp_getattr */ 
-#endif
-	(setattrfunc)0,			    /* tp_setattr */ 
-#if PY_VERSION_HEX >= 0x03000000
-    0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
-#else
-	(cmpfunc)SwigPyObject_compare,	    /* tp_compare */
-#endif
-	(reprfunc)SwigPyObject_repr,	    /* tp_repr */    
-	&SwigPyObject_as_number,	    /* tp_as_number */
-	0,				    /* tp_as_sequence */
-	0,				    /* tp_as_mapping */
-	(hashfunc)0,			    /* tp_hash */
-	(ternaryfunc)0,			    /* tp_call */
-	(reprfunc)SwigPyObject_str,	    /* tp_str */
-	PyObject_GenericGetAttr,            /* tp_getattro */
-	0,				    /* tp_setattro */
-	0,		                    /* tp_as_buffer */
-	Py_TPFLAGS_DEFAULT,	            /* tp_flags */
-	swigobject_doc, 	            /* tp_doc */        
-	0,                                  /* tp_traverse */
-	0,                                  /* tp_clear */
-	(richcmpfunc)SwigPyObject_richcompare,           /* tp_richcompare */
-	0,                                  /* tp_weaklistoffset */
-#if PY_VERSION_HEX >= 0x02020000
-	0,                                  /* tp_iter */
-	0,                                  /* tp_iternext */
-	swigobject_methods,		    /* tp_methods */ 
-	0,			            /* tp_members */
-	0,				    /* tp_getset */	    	
-	0,			            /* tp_base */	        
-	0,				    /* tp_dict */	    	
-	0,				    /* tp_descr_get */  	
-	0,				    /* tp_descr_set */  	
-	0,				    /* tp_dictoffset */ 	
-	0,				    /* tp_init */	    	
-	0,				    /* tp_alloc */	    	
-	0,			            /* tp_new */	    	
-	0,	                            /* tp_free */	   
-	0,                                  /* tp_is_gc */  
-	0,				    /* tp_bases */   
-	0,				    /* tp_mro */
-	0,				    /* tp_cache */   
-	0,				    /* tp_subclasses */
-	0,				    /* tp_weaklist */
-#endif
-#if PY_VERSION_HEX >= 0x02030000
-	0,                                  /* tp_del */
-#endif
-#ifdef COUNT_ALLOCS
-	0,0,0,0                             /* tp_alloc -> tp_next */
-#endif
-      };
-    swigpyobject_type = tmp;
-    /* for Python 3 we already assigned ob_type in PyVarObject_HEAD_INIT() */
-#if PY_VERSION_HEX < 0x03000000
-    swigpyobject_type.ob_type = &PyType_Type;
-#endif
-    type_init = 1;
-  }
-  return &swigpyobject_type;
-}
-
-SWIGRUNTIME PyObject *
-SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
-{
-  SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type());
-  if (sobj) {
-    sobj->ptr  = ptr;
-    sobj->ty   = ty;
-    sobj->own  = own;
-    sobj->next = 0;
-  }
-  return (PyObject *)sobj;
-}
-
-/* -----------------------------------------------------------------------------
- * Implements a simple Swig Packed type, and use it instead of string
- * ----------------------------------------------------------------------------- */
-
-typedef struct {
-  PyObject_HEAD
-  void *pack;
-  swig_type_info *ty;
-  size_t size;
-} SwigPyPacked;
-
-SWIGRUNTIME int
-SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
-{
-  char result[SWIG_BUFFER_SIZE];
-  fputs("<Swig Packed ", fp); 
-  if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
-    fputs("at ", fp); 
-    fputs(result, fp); 
-  }
-  fputs(v->ty->name,fp); 
-  fputs(">", fp);
-  return 0; 
-}
-  
-SWIGRUNTIME PyObject *
-SwigPyPacked_repr(SwigPyPacked *v)
-{
-  char result[SWIG_BUFFER_SIZE];
-  if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
-    return SWIG_Python_str_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
-  } else {
-    return SWIG_Python_str_FromFormat("<Swig Packed %s>", v->ty->name);
-  }  
-}
-
-SWIGRUNTIME PyObject *
-SwigPyPacked_str(SwigPyPacked *v)
-{
-  char result[SWIG_BUFFER_SIZE];
-  if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
-    return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name);
-  } else {
-    return SWIG_Python_str_FromChar(v->ty->name);
-  }  
-}
-
-SWIGRUNTIME int
-SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w)
-{
-  size_t i = v->size;
-  size_t j = w->size;
-  int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
-  return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
-}
-
-SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
-
-SWIGRUNTIME PyTypeObject*
-SwigPyPacked_type(void) {
-  static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
-  return type;
-}
-
-SWIGRUNTIMEINLINE int
-SwigPyPacked_Check(PyObject *op) {
-  return ((op)->ob_type == _PySwigPacked_type()) 
-    || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0);
-}
-
-SWIGRUNTIME void
-SwigPyPacked_dealloc(PyObject *v)
-{
-  if (SwigPyPacked_Check(v)) {
-    SwigPyPacked *sobj = (SwigPyPacked *) v;
-    free(sobj->pack);
-  }
-  PyObject_DEL(v);
-}
-
-SWIGRUNTIME PyTypeObject*
-_PySwigPacked_type(void) {
-  static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
-  static PyTypeObject swigpypacked_type;
-  static int type_init = 0;  
-  if (!type_init) {
-    const PyTypeObject tmp
-      = {
-    /* PyObject header changed in Python 3 */
-#if PY_VERSION_HEX>=0x03000000
-    PyVarObject_HEAD_INIT(&PyType_Type, 0)
-#else
-	PyObject_HEAD_INIT(NULL)
-    0,				    /* ob_size */	
-#endif
-	(char *)"SwigPyPacked",		    /* tp_name */	
-	sizeof(SwigPyPacked),		    /* tp_basicsize */	
-	0,				    /* tp_itemsize */	
-	(destructor)SwigPyPacked_dealloc,   /* tp_dealloc */	
-	(printfunc)SwigPyPacked_print,	    /* tp_print */   	
-	(getattrfunc)0,			    /* tp_getattr */ 	
-	(setattrfunc)0,			    /* tp_setattr */ 	
-#if PY_VERSION_HEX>=0x03000000
-    0, /* tp_reserved in 3.0.1 */
-#else
-    (cmpfunc)SwigPyPacked_compare,	    /* tp_compare */
-#endif
-	(reprfunc)SwigPyPacked_repr,	    /* tp_repr */
-	0,	                            /* tp_as_number */
-	0,				    /* tp_as_sequence */
-	0,				    /* tp_as_mapping */
-	(hashfunc)0,			    /* tp_hash */
-	(ternaryfunc)0,			    /* tp_call */
-	(reprfunc)SwigPyPacked_str,	    /* tp_str */
-	PyObject_GenericGetAttr,            /* tp_getattro */
-	0,				    /* tp_setattro */
-	0,		                    /* tp_as_buffer */
-	Py_TPFLAGS_DEFAULT,	            /* tp_flags */
-	swigpacked_doc, 	            /* tp_doc */
-	0,                                  /* tp_traverse */
-	0,                                  /* tp_clear */
-	0,                                  /* tp_richcompare */
-	0,                                  /* tp_weaklistoffset */
-#if PY_VERSION_HEX >= 0x02020000
-	0,                                  /* tp_iter */
-	0,                                  /* tp_iternext */
-	0,		                    /* tp_methods */ 
-	0,			            /* tp_members */
-	0,				    /* tp_getset */	    	
-	0,			            /* tp_base */	        
-	0,				    /* tp_dict */	    	
-	0,				    /* tp_descr_get */  	
-	0,				    /* tp_descr_set */  	
-	0,				    /* tp_dictoffset */ 	
-	0,				    /* tp_init */	    	
-	0,				    /* tp_alloc */	    	
-	0,			            /* tp_new */	    	
-	0, 	                            /* tp_free */	   
-        0,                                  /* tp_is_gc */  
-	0,				    /* tp_bases */   
-	0,				    /* tp_mro */
-	0,				    /* tp_cache */   
- 	0,				    /* tp_subclasses */
-	0,				    /* tp_weaklist */
-#endif
-#if PY_VERSION_HEX >= 0x02030000
-	0,                                  /* tp_del */
-#endif
-#ifdef COUNT_ALLOCS
-	0,0,0,0                             /* tp_alloc -> tp_next */
-#endif
-      };
-    swigpypacked_type = tmp;
-    /* for Python 3 the ob_type already assigned in PyVarObject_HEAD_INIT() */
-#if PY_VERSION_HEX < 0x03000000
-    swigpypacked_type.ob_type = &PyType_Type;
-#endif
-    type_init = 1;
-  }
-  return &swigpypacked_type;
-}
-
-SWIGRUNTIME PyObject *
-SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty)
-{
-  SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type());
-  if (sobj) {
-    void *pack = malloc(size);
-    if (pack) {
-      memcpy(pack, ptr, size);
-      sobj->pack = pack;
-      sobj->ty   = ty;
-      sobj->size = size;
-    } else {
-      PyObject_DEL((PyObject *) sobj);
-      sobj = 0;
-    }
-  }
-  return (PyObject *) sobj;
-}
-
-SWIGRUNTIME swig_type_info *
-SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
-{
-  if (SwigPyPacked_Check(obj)) {
-    SwigPyPacked *sobj = (SwigPyPacked *)obj;
-    if (sobj->size != size) return 0;
-    memcpy(ptr, sobj->pack, size);
-    return sobj->ty;
-  } else {
-    return 0;
-  }
-}
-
-/* -----------------------------------------------------------------------------
- * pointers/data manipulation
- * ----------------------------------------------------------------------------- */
-
-SWIGRUNTIMEINLINE PyObject *
-_SWIG_This(void)
-{
-    return SWIG_Python_str_FromChar("this");
-}
-
-SWIGRUNTIME PyObject *
-SWIG_This(void)
-{
-  static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
-  return swig_this;
-}
-
-/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
-
-/* TODO: I don't know how to implement the fast getset in Python 3 right now */
-#if PY_VERSION_HEX>=0x03000000
-#define SWIG_PYTHON_SLOW_GETSET_THIS 
-#endif
-
-SWIGRUNTIME SwigPyObject *
-SWIG_Python_GetSwigThis(PyObject *pyobj) 
-{
-  if (SwigPyObject_Check(pyobj)) {
-    return (SwigPyObject *) pyobj;
-  } else {
-    PyObject *obj = 0;
-#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
-    if (PyInstance_Check(pyobj)) {
-      obj = _PyInstance_Lookup(pyobj, SWIG_This());      
-    } else {
-      PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
-      if (dictptr != NULL) {
-	PyObject *dict = *dictptr;
-	obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
-      } else {
-#ifdef PyWeakref_CheckProxy
-	if (PyWeakref_CheckProxy(pyobj)) {
-	  PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
-	  return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
-	}
-#endif
-	obj = PyObject_GetAttr(pyobj,SWIG_This());
-	if (obj) {
-	  Py_DECREF(obj);
-	} else {
-	  if (PyErr_Occurred()) PyErr_Clear();
-	  return 0;
-	}
-      }
-    }
-#else
-    obj = PyObject_GetAttr(pyobj,SWIG_This());
-    if (obj) {
-      Py_DECREF(obj);
-    } else {
-      if (PyErr_Occurred()) PyErr_Clear();
-      return 0;
-    }
-#endif
-    if (obj && !SwigPyObject_Check(obj)) {
-      /* a PyObject is called 'this', try to get the 'real this'
-	 SwigPyObject from it */ 
-      return SWIG_Python_GetSwigThis(obj);
-    }
-    return (SwigPyObject *)obj;
-  }
-}
-
-/* Acquire a pointer value */
-
-SWIGRUNTIME int
-SWIG_Python_AcquirePtr(PyObject *obj, int own) {
-  if (own == SWIG_POINTER_OWN) {
-    SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj);
-    if (sobj) {
-      int oldown = sobj->own;
-      sobj->own = own;
-      return oldown;
-    }
-  }
-  return 0;
-}
-
-/* Convert a pointer value */
-
-SWIGRUNTIME int
-SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
-  if (!obj) return SWIG_ERROR;
-  if (obj == Py_None) {
-    if (ptr) *ptr = 0;
-    return SWIG_OK;
-  } else {
-    SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj);
-    if (own)
-      *own = 0;
-    while (sobj) {
-      void *vptr = sobj->ptr;
-      if (ty) {
-	swig_type_info *to = sobj->ty;
-	if (to == ty) {
-	  /* no type cast needed */
-	  if (ptr) *ptr = vptr;
-	  break;
-	} else {
-	  swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
-	  if (!tc) {
-	    sobj = (SwigPyObject *)sobj->next;
-	  } else {
-	    if (ptr) {
-              int newmemory = 0;
-              *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
-              if (newmemory == SWIG_CAST_NEW_MEMORY) {
-                assert(own);
-                if (own)
-                  *own = *own | SWIG_CAST_NEW_MEMORY;
-              }
-            }
-	    break;
-	  }
-	}
-      } else {
-	if (ptr) *ptr = vptr;
-	break;
-      }
-    }
-    if (sobj) {
-      if (own)
-        *own = *own | sobj->own;
-      if (flags & SWIG_POINTER_DISOWN) {
-	sobj->own = 0;
-      }
-      return SWIG_OK;
-    } else {
-      int res = SWIG_ERROR;
-      if (flags & SWIG_POINTER_IMPLICIT_CONV) {
-	SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
-	if (data && !data->implicitconv) {
-	  PyObject *klass = data->klass;
-	  if (klass) {
-	    PyObject *impconv;
-	    data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
-	    impconv = SWIG_Python_CallFunctor(klass, obj);
-	    data->implicitconv = 0;
-	    if (PyErr_Occurred()) {
-	      PyErr_Clear();
-	      impconv = 0;
-	    }
-	    if (impconv) {
-	      SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv);
-	      if (iobj) {
-		void *vptr;
-		res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
-		if (SWIG_IsOK(res)) {
-		  if (ptr) {
-		    *ptr = vptr;
-		    /* transfer the ownership to 'ptr' */
-		    iobj->own = 0;
-		    res = SWIG_AddCast(res);
-		    res = SWIG_AddNewMask(res);
-		  } else {
-		    res = SWIG_AddCast(res);		    
-		  }
-		}
-	      }
-	      Py_DECREF(impconv);
-	    }
-	  }
-	}
-      }
-      return res;
-    }
-  }
-}
-
-/* Convert a function ptr value */
-
-SWIGRUNTIME int
-SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
-  if (!PyCFunction_Check(obj)) {
-    return SWIG_ConvertPtr(obj, ptr, ty, 0);
-  } else {
-    void *vptr = 0;
-    
-    /* here we get the method pointer for callbacks */
-    const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
-    const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
-    if (desc)
-      desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
-    if (!desc) 
-      return SWIG_ERROR;
-    if (ty) {
-      swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
-      if (tc) {
-        int newmemory = 0;
-        *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
-        assert(!newmemory); /* newmemory handling not yet implemented */
-      } else {
-        return SWIG_ERROR;
-      }
-    } else {
-      *ptr = vptr;
-    }
-    return SWIG_OK;
-  }
-}
-
-/* Convert a packed value value */
-
-SWIGRUNTIME int
-SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
-  swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz);
-  if (!to) return SWIG_ERROR;
-  if (ty) {
-    if (to != ty) {
-      /* check type cast? */
-      swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
-      if (!tc) return SWIG_ERROR;
-    }
-  }
-  return SWIG_OK;
-}  
-
-/* -----------------------------------------------------------------------------
- * Create a new pointer object
- * ----------------------------------------------------------------------------- */
-
-/*
-  Create a new instance object, without calling __init__, and set the
-  'this' attribute.
-*/
-
-SWIGRUNTIME PyObject* 
-SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
-{
-#if (PY_VERSION_HEX >= 0x02020000)
-  PyObject *inst = 0;
-  PyObject *newraw = data->newraw;
-  if (newraw) {
-    inst = PyObject_Call(newraw, data->newargs, NULL);
-    if (inst) {
-#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
-      PyObject **dictptr = _PyObject_GetDictPtr(inst);
-      if (dictptr != NULL) {
-	PyObject *dict = *dictptr;
-	if (dict == NULL) {
-	  dict = PyDict_New();
-	  *dictptr = dict;
-	  PyDict_SetItem(dict, SWIG_This(), swig_this);
-	}
-      }
-#else
-      PyObject *key = SWIG_This();
-      PyObject_SetAttr(inst, key, swig_this);
-#endif
-    }
-  } else {
-#if PY_VERSION_HEX >= 0x03000000
-    inst = PyBaseObject_Type.tp_new((PyTypeObject*) data->newargs, Py_None, Py_None);
-    PyObject_SetAttr(inst, SWIG_This(), swig_this);
-    Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG;
-#else
-    PyObject *dict = PyDict_New();
-    PyDict_SetItem(dict, SWIG_This(), swig_this);
-    inst = PyInstance_NewRaw(data->newargs, dict);
-    Py_DECREF(dict);
-#endif
-  }
-  return inst;
-#else
-#if (PY_VERSION_HEX >= 0x02010000)
-  PyObject *inst;
-  PyObject *dict = PyDict_New();
-  PyDict_SetItem(dict, SWIG_This(), swig_this);
-  inst = PyInstance_NewRaw(data->newargs, dict);
-  Py_DECREF(dict);
-  return (PyObject *) inst;
-#else
-  PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
-  if (inst == NULL) {
-    return NULL;
-  }
-  inst->in_class = (PyClassObject *)data->newargs;
-  Py_INCREF(inst->in_class);
-  inst->in_dict = PyDict_New();
-  if (inst->in_dict == NULL) {
-    Py_DECREF(inst);
-    return NULL;
-  }
-#ifdef Py_TPFLAGS_HAVE_WEAKREFS
-  inst->in_weakreflist = NULL;
-#endif
-#ifdef Py_TPFLAGS_GC
-  PyObject_GC_Init(inst);
-#endif
-  PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
-  return (PyObject *) inst;
-#endif
-#endif
-}
-
-SWIGRUNTIME void
-SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
-{
- PyObject *dict;
-#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
- PyObject **dictptr = _PyObject_GetDictPtr(inst);
- if (dictptr != NULL) {
-   dict = *dictptr;
-   if (dict == NULL) {
-     dict = PyDict_New();
-     *dictptr = dict;
-   }
-   PyDict_SetItem(dict, SWIG_This(), swig_this);
-   return;
- }
-#endif
- dict = PyObject_GetAttrString(inst, (char*)"__dict__");
- PyDict_SetItem(dict, SWIG_This(), swig_this);
- Py_DECREF(dict);
-} 
-
-
-SWIGINTERN PyObject *
-SWIG_Python_InitShadowInstance(PyObject *args) {
-  PyObject *obj[2];
-  if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
-    return NULL;
-  } else {
-    SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
-    if (sthis) {
-      SwigPyObject_append((PyObject*) sthis, obj[1]);
-    } else {
-      SWIG_Python_SetSwigThis(obj[0], obj[1]);
-    }
-    return SWIG_Py_Void();
-  }
-}
-
-/* Create a new pointer object */
-
-SWIGRUNTIME PyObject *
-SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
-  if (!ptr) {
-    return SWIG_Py_Void();
-  } else {
-    int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
-    PyObject *robj = SwigPyObject_New(ptr, type, own);
-    SwigPyClientData *clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0;
-    if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
-      PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
-      if (inst) {
-	Py_DECREF(robj);
-	robj = inst;
-      }
-    }
-    return robj;
-  }
-}
-
-/* Create a new packed object */
-
-SWIGRUNTIMEINLINE PyObject *
-SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
-  return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
-}
-
-/* -----------------------------------------------------------------------------*
- *  Get type list 
- * -----------------------------------------------------------------------------*/
-
-#ifdef SWIG_LINK_RUNTIME
-void *SWIG_ReturnGlobalTypeList(void *);
-#endif
-
-SWIGRUNTIME swig_module_info *
-SWIG_Python_GetModule(void) {
-  static void *type_pointer = (void *)0;
-  /* first check if module already created */
-  if (!type_pointer) {
-#ifdef SWIG_LINK_RUNTIME
-    type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
-#else
-    type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
-				    (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
-    if (PyErr_Occurred()) {
-      PyErr_Clear();
-      type_pointer = (void *)0;
-    }
-#endif
-  }
-  return (swig_module_info *) type_pointer;
-}
-
-#if PY_MAJOR_VERSION < 2
-/* PyModule_AddObject function was introduced in Python 2.0.  The following function
-   is copied out of Python/modsupport.c in python version 2.3.4 */
-SWIGINTERN int
-PyModule_AddObject(PyObject *m, char *name, PyObject *o)
-{
-  PyObject *dict;
-  if (!PyModule_Check(m)) {
-    PyErr_SetString(PyExc_TypeError,
-		    "PyModule_AddObject() needs module as first arg");
-    return SWIG_ERROR;
-  }
-  if (!o) {
-    PyErr_SetString(PyExc_TypeError,
-		    "PyModule_AddObject() needs non-NULL value");
-    return SWIG_ERROR;
-  }
-  
-  dict = PyModule_GetDict(m);
-  if (dict == NULL) {
-    /* Internal error -- modules must have a dict! */
-    PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
-		 PyModule_GetName(m));
-    return SWIG_ERROR;
-  }
-  if (PyDict_SetItemString(dict, name, o))
-    return SWIG_ERROR;
-  Py_DECREF(o);
-  return SWIG_OK;
-}
-#endif
-
-SWIGRUNTIME void
-SWIG_Python_DestroyModule(void *vptr)
-{
-  swig_module_info *swig_module = (swig_module_info *) vptr;
-  swig_type_info **types = swig_module->types;
-  size_t i;
-  for (i =0; i < swig_module->size; ++i) {
-    swig_type_info *ty = types[i];
-    if (ty->owndata) {
-      SwigPyClientData *data = (SwigPyClientData *) ty->clientdata;
-      if (data) SwigPyClientData_Del(data);
-    }
-  }
-  Py_DECREF(SWIG_This());
-}
-
-SWIGRUNTIME void
-SWIG_Python_SetModule(swig_module_info *swig_module) {
-  static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
-
-#if PY_VERSION_HEX >= 0x03000000
- /* Add a dummy module object into sys.modules */
-  PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION);
-#else
-  PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
-				   swig_empty_runtime_method_table);
-#endif
-  PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
-  if (pointer && module) {
-    PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
-  } else {
-    Py_XDECREF(pointer);
-  }
-}
-
-/* The python cached type query */
-SWIGRUNTIME PyObject *
-SWIG_Python_TypeCache(void) {
-  static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
-  return cache;
-}
-
-SWIGRUNTIME swig_type_info *
-SWIG_Python_TypeQuery(const char *type)
-{
-  PyObject *cache = SWIG_Python_TypeCache();
-  PyObject *key = SWIG_Python_str_FromChar(type); 
-  PyObject *obj = PyDict_GetItem(cache, key);
-  swig_type_info *descriptor;
-  if (obj) {
-    descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
-  } else {
-    swig_module_info *swig_module = SWIG_Python_GetModule();
-    descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
-    if (descriptor) {
-      obj = PyCObject_FromVoidPtr(descriptor, NULL);
-      PyDict_SetItem(cache, key, obj);
-      Py_DECREF(obj);
-    }
-  }
-  Py_DECREF(key);
-  return descriptor;
-}
-
-/* 
-   For backward compatibility only
-*/
-#define SWIG_POINTER_EXCEPTION  0
-#define SWIG_arg_fail(arg)      SWIG_Python_ArgFail(arg)
-#define SWIG_MustGetPtr(p, type, argnum, flags)  SWIG_Python_MustGetPtr(p, type, argnum, flags)
-
-SWIGRUNTIME int
-SWIG_Python_AddErrMesg(const char* mesg, int infront)
-{  
-  if (PyErr_Occurred()) {
-    PyObject *type = 0;
-    PyObject *value = 0;
-    PyObject *traceback = 0;
-    PyErr_Fetch(&type, &value, &traceback);
-    if (value) {
-      char *tmp;
-      PyObject *old_str = PyObject_Str(value);
-      Py_XINCREF(type);
-      PyErr_Clear();
-      if (infront) {
-	PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str));
-      } else {
-	PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
-      }
-      SWIG_Python_str_DelForPy3(tmp);
-      Py_DECREF(old_str);
-    }
-    return 1;
-  } else {
-    return 0;
-  }
-}
-  
-SWIGRUNTIME int
-SWIG_Python_ArgFail(int argnum)
-{
-  if (PyErr_Occurred()) {
-    /* add information about failing argument */
-    char mesg[256];
-    PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
-    return SWIG_Python_AddErrMesg(mesg, 1);
-  } else {
-    return 0;
-  }
-}
-
-SWIGRUNTIMEINLINE const char *
-SwigPyObject_GetDesc(PyObject *self)
-{
-  SwigPyObject *v = (SwigPyObject *)self;
-  swig_type_info *ty = v ? v->ty : 0;
-  return ty ? ty->str : (char*)"";
-}
-
-SWIGRUNTIME void
-SWIG_Python_TypeError(const char *type, PyObject *obj)
-{
-  if (type) {
-#if defined(SWIG_COBJECT_TYPES)
-    if (obj && SwigPyObject_Check(obj)) {
-      const char *otype = (const char *) SwigPyObject_GetDesc(obj);
-      if (otype) {
-	PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received",
-		     type, otype);
-	return;
-      }
-    } else 
-#endif      
-    {
-      const char *otype = (obj ? obj->ob_type->tp_name : 0); 
-      if (otype) {
-	PyObject *str = PyObject_Str(obj);
-	const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0;
-	if (cstr) {
-	  PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
-		       type, otype, cstr);
-          SWIG_Python_str_DelForPy3(cstr);
-	} else {
-	  PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
-		       type, otype);
-	}
-	Py_XDECREF(str);
-	return;
-      }
-    }   
-    PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
-  } else {
-    PyErr_Format(PyExc_TypeError, "unexpected type is received");
-  }
-}
-
-
-/* Convert a pointer value, signal an exception on a type mismatch */
-SWIGRUNTIME void *
-SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
-  void *result;
-  if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
-    PyErr_Clear();
-#if SWIG_POINTER_EXCEPTION
-    if (flags) {
-      SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
-      SWIG_Python_ArgFail(argnum);
-    }
-#endif
-  }
-  return result;
-}
-
-
-#ifdef __cplusplus
-#if 0
-{ /* cc-mode */
-#endif
-}
-#endif
-
-
-
-#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) 
-
-#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else 
-
-
-
-/* -------- TYPES TABLE (BEGIN) -------- */
-
-#define SWIGTYPE_p_attrl swig_types[0]
-#define SWIGTYPE_p_attropl swig_types[1]
-#define SWIGTYPE_p_batch_status swig_types[2]
-#define SWIGTYPE_p_char swig_types[3]
-#define SWIGTYPE_p_int swig_types[4]
-#define SWIGTYPE_p_long swig_types[5]
-#define SWIGTYPE_p_p_char swig_types[6]
-static swig_type_info *swig_types[8];
-static swig_module_info swig_module = {swig_types, 7, 0, 0, 0, 0};
-#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
-#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
-
-/* -------- TYPES TABLE (END) -------- */
-
-#if (PY_VERSION_HEX <= 0x02000000)
-# if !defined(SWIG_PYTHON_CLASSIC)
-#  error "This python version requires swig to be run with the '-classic' option"
-# endif
-#endif
-
-/*-----------------------------------------------
-              @(target):= _pbs.so
-  ------------------------------------------------*/
-#if PY_VERSION_HEX >= 0x03000000
-#  define SWIG_init    PyInit__pbs
-
-#else
-#  define SWIG_init    init_pbs
-
-#endif
-#define SWIG_name    "_pbs"
-
-#define SWIGVERSION 0x010340 
-#define SWIG_VERSION SWIGVERSION
-
-
-#define SWIG_as_voidptr(a) (void *)((const void *)(a)) 
-#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a)) 
-
-
-
-#include "pbs_ifl.h"
-#include "pbs_error.h"
-#include "rm.h"
-#include "log.h"
-
-#define SARA_DEBUG 0
-
-//extern int pbs_errno;
-
-
-
-int Get_List_Size(PyObject *src)
-{
-  if (PyList_Check(src))
-    return(PyList_Size(src));
-
-  /* check if valid NULL pointer */
-  if ( PyString_Check(src) ) {
-    if ( ! strcmp(PyString_AsString(src), "NULL") )
-      return(0);
-  }
-  return(-1);
-
-} // end Get_List_Size()
-
-
-
-
-// The default constructor for struct attrl
-//
-struct attrl *new_attrl(int number)
-{
-  struct attrl *ptr;
-  struct attrl *prev, *current;
-  int i;
-
-  /* 
-    allocate memory as a one block is handy for Python scripts 
-    and fill in the next fields so it also works for the C-library
-  */
-  ptr = (struct attrl *) malloc(number * sizeof(struct attrl));
-
-  prev = NULL;
-  current = ptr + (number - 1);
-  for (i=0; i < number; i++)
-  { 
-    // printf("constructor called\n");
-    current->name     = (char *) malloc(MAXNAMLEN * sizeof(char));
-    current->resource = (char *) malloc(MAXNAMLEN * sizeof(char));
-    current->value    = (char *) malloc(MAXNAMLEN * sizeof(char));
-
-    bzero( (void*) current->name, sizeof(current->name));
-    bzero( (void*) current->resource, sizeof(current->resource));
-    bzero( (void*) current->value, sizeof(current->value));
-
-    current->next     = prev;
-    prev = current;
-    current--;
-  }
-  return (struct attrl *)ptr;
-
-} // end new_attrl()
-
-
-
-// The default constructor for struct attropl
-//
-struct attropl *new_attropl(int number)
-{
-  struct attropl *ptr;
-  struct attropl *prev, *current;
-  int i;
-
-  /* 
-    allocate memory as a one block is handy for Python scripts 
-    and fill in the next fields so it also works for the C-library
-  */
-  ptr = (struct attropl *) malloc(number * sizeof(struct attropl));
-
-  prev = NULL;
-  current = ptr + (number - 1);
-  for (i=0; i < number; i++)
-  { 
-    // printf("constructor called\n");
-    current->name     = (char *) malloc(MAXNAMLEN * sizeof(char));
-    current->resource = (char *) malloc(MAXNAMLEN * sizeof(char));
-    current->value    = (char *) malloc(MAXNAMLEN * sizeof(char));
-
-    bzero( (void*) current->name, sizeof(current->name));
-    bzero( (void*) current->resource, sizeof(current->resource));
-    bzero( (void*) current->value, sizeof(current->value));
-    current->op = 0;
-
-    current->next     = prev;
-    prev = current;
-    current--;
-  }
-  return (struct attropl *)ptr;
-
-} // end new_attropl()
-
-/* Not used only returned */
-struct batch_status *new_batch_status()
-{
-   struct batch_status *ptr;
-
-   ptr = (struct batch_status *) malloc(sizeof(struct batch_status));
-   return (struct batch_status *)ptr;
-} // end new struct batch_status
-
-int get_error()
-{
-   char *errmsg;
-
-   errmsg = pbse_to_txt(pbs_errno);
-   if (SARA_DEBUG)
-   {
-      printf("Bas = %d\n", pbs_errno);
-      printf("Bas = %d, text = %s\n", pbs_errno, errmsg);
-   }
-   return (pbs_errno);
-}
-
-
-
-
-#include <limits.h>
-#if !defined(SWIG_NO_LLONG_MAX)
-# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
-#   define LLONG_MAX __LONG_LONG_MAX__
-#   define LLONG_MIN (-LLONG_MAX - 1LL)
-#   define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
-# endif
-#endif
-
-
-SWIGINTERN int
-SWIG_AsVal_double (PyObject *obj, double *val)
-{
-  int res = SWIG_TypeError;
-  if (PyFloat_Check(obj)) {
-    if (val) *val = PyFloat_AsDouble(obj);
-    return SWIG_OK;
-  } else if (PyInt_Check(obj)) {
-    if (val) *val = PyInt_AsLong(obj);
-    return SWIG_OK;
-  } else if (PyLong_Check(obj)) {
-    double v = PyLong_AsDouble(obj);
-    if (!PyErr_Occurred()) {
-      if (val) *val = v;
-      return SWIG_OK;
-    } else {
-      PyErr_Clear();
-    }
-  }
-#ifdef SWIG_PYTHON_CAST_MODE
-  {
-    int dispatch = 0;
-    double d = PyFloat_AsDouble(obj);
-    if (!PyErr_Occurred()) {
-      if (val) *val = d;
-      return SWIG_AddCast(SWIG_OK);
-    } else {
-      PyErr_Clear();
-    }
-    if (!dispatch) {
-      long v = PyLong_AsLong(obj);
-      if (!PyErr_Occurred()) {
-	if (val) *val = v;
-	return SWIG_AddCast(SWIG_AddCast(SWIG_OK));
-      } else {
-	PyErr_Clear();
-      }
-    }
-  }
-#endif
-  return res;
-}
-
-
-#include <float.h>
-
-
-#include <math.h>
-
-
-SWIGINTERNINLINE int
-SWIG_CanCastAsInteger(double *d, double min, double max) {
-  double x = *d;
-  if ((min <= x && x <= max)) {
-   double fx = floor(x);
-   double cx = ceil(x);
-   double rd =  ((x - fx) < 0.5) ? fx : cx; /* simple rint */
-   if ((errno == EDOM) || (errno == ERANGE)) {
-     errno = 0;
-   } else {
-     double summ, reps, diff;
-     if (rd < x) {
-       diff = x - rd;
-     } else if (rd > x) {
-       diff = rd - x;
-     } else {
-       return 1;
-     }
-     summ = rd + x;
-     reps = diff/summ;
-     if (reps < 8*DBL_EPSILON) {
-       *d = rd;
-       return 1;
-     }
-   }
-  }
-  return 0;
-}
-
-
-SWIGINTERN int
-SWIG_AsVal_long (PyObject *obj, long* val)
-{
-  if (PyInt_Check(obj)) {
-    if (val) *val = PyInt_AsLong(obj);
-    return SWIG_OK;
-  } else if (PyLong_Check(obj)) {
-    long v = PyLong_AsLong(obj);
-    if (!PyErr_Occurred()) {
-      if (val) *val = v;
-      return SWIG_OK;
-    } else {
-      PyErr_Clear();
-    }
-  }
-#ifdef SWIG_PYTHON_CAST_MODE
-  {
-    int dispatch = 0;
-    long v = PyInt_AsLong(obj);
-    if (!PyErr_Occurred()) {
-      if (val) *val = v;
-      return SWIG_AddCast(SWIG_OK);
-    } else {
-      PyErr_Clear();
-    }
-    if (!dispatch) {
-      double d;
-      int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
-      if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) {
-	if (val) *val = (long)(d);
-	return res;
-      }
-    }
-  }
-#endif
-  return SWIG_TypeError;
-}
-
-
-SWIGINTERN int
-SWIG_AsVal_int (PyObject * obj, int *val)
-{
-  long v;
-  int res = SWIG_AsVal_long (obj, &v);
-  if (SWIG_IsOK(res)) {
-    if ((v < INT_MIN || v > INT_MAX)) {
-      return SWIG_OverflowError;
-    } else {
-      if (val) *val = (int)(v);
-    }
-  }  
-  return res;
-}
-
-
-  #define SWIG_From_long   PyInt_FromLong 
-
-
-SWIGINTERNINLINE PyObject *
-SWIG_From_int  (int value)
-{    
-  return SWIG_From_long  (value);
-}
-
-
-SWIGINTERN swig_type_info*
-SWIG_pchar_descriptor(void)
-{
-  static int init = 0;
-  static swig_type_info* info = 0;
-  if (!init) {
-    info = SWIG_TypeQuery("_p_char");
-    init = 1;
-  }
-  return info;
-}
-
-
-SWIGINTERNINLINE PyObject *
-SWIG_FromCharPtrAndSize(const char* carray, size_t size)
-{
-  if (carray) {
-    if (size > INT_MAX) {
-      swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
-      return pchar_descriptor ? 
-	SWIG_NewPointerObj((char *)(carray), pchar_descriptor, 0) : SWIG_Py_Void();
-    } else {
-#if PY_VERSION_HEX >= 0x03000000
-      return PyUnicode_FromStringAndSize(carray, (int)(size));
-#else
-      return PyString_FromStringAndSize(carray, (int)(size));
-#endif
-    }
-  } else {
-    return SWIG_Py_Void();
-  }
-}
-
-
-SWIGINTERNINLINE PyObject * 
-SWIG_FromCharPtr(const char *cptr)
-{ 
-  return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
-}
-
-
-SWIGINTERN int
-SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
-{
-#if PY_VERSION_HEX>=0x03000000
-  if (PyUnicode_Check(obj))
-#else  
-  if (PyString_Check(obj))
-#endif
-  {
-    char *cstr; Py_ssize_t len;
-#if PY_VERSION_HEX>=0x03000000
-    if (!alloc && cptr) {
-        /* We can't allow converting without allocation, since the internal
-           representation of string in Python 3 is UCS-2/UCS-4 but we require
-           a UTF-8 representation.
-           TODO(bhy) More detailed explanation */
-        return SWIG_RuntimeError;
-    }
-    obj = PyUnicode_AsUTF8String(obj);
-    PyBytes_AsStringAndSize(obj, &cstr, &len);
-    if(alloc) *alloc = SWIG_NEWOBJ;
-#else
-    PyString_AsStringAndSize(obj, &cstr, &len);
-#endif
-    if (cptr) {
-      if (alloc) {
-	/* 
-	   In python the user should not be able to modify the inner
-	   string representation. To warranty that, if you define
-	   SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string
-	   buffer is always returned.
-
-	   The default behavior is just to return the pointer value,
-	   so, be careful.
-	*/ 
-#if defined(SWIG_PYTHON_SAFE_CSTRINGS)
-	if (*alloc != SWIG_OLDOBJ) 
-#else
-	if (*alloc == SWIG_NEWOBJ) 
-#endif
-	  {
-	    *cptr = (char *)memcpy((char *)malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1));
-	    *alloc = SWIG_NEWOBJ;
-	  }
-	else {
-	  *cptr = cstr;
-	  *alloc = SWIG_OLDOBJ;
-	}
-      } else {
-        #if PY_VERSION_HEX>=0x03000000
-        assert(0); /* Should never reach here in Python 3 */
-        #endif
-	*cptr = SWIG_Python_str_AsChar(obj);
-      }
-    }
-    if (psize) *psize = len + 1;
-#if PY_VERSION_HEX>=0x03000000
-    Py_XDECREF(obj);
-#endif
-    return SWIG_OK;
-  } else {
-    swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
-    if (pchar_descriptor) {
-      void* vptr = 0;
-      if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
-	if (cptr) *cptr = (char *) vptr;
-	if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
-	if (alloc) *alloc = SWIG_OLDOBJ;
-	return SWIG_OK;
-      }
-    }
-  }
-  return SWIG_TypeError;
-}
-
-
-
-
-SWIGINTERN char *attrl___str__(struct attrl *self){
-    static char temp[4 * 255] ;
-    snprintf(temp, sizeof(temp), "(%s,%s,%s)", 
-      self->name, self->resource, self->value);
-    
-    return &temp[0];
-  }
-SWIGINTERN void delete_attrl(struct attrl *self){
-    if (SARA_DEBUG)
-       printf("Bas free attrl\n");
-
-    /*
-  	free(self);
-    */
-  }
-SWIGINTERN char *attropl___str__(struct attropl *self){
-    static char temp[4 * 255] ;
-    snprintf(temp, sizeof(temp), "(%s,%s,%s)", 
-      self->name, self->resource, self->value);
-    
-    return &temp[0];
-  }
-SWIGINTERN void delete_attropl(struct attropl *self){
-    if (SARA_DEBUG)
-       printf("Bas free attropl\n");
-
-    /*
-  	free(self);
-    */
-  }
-
-SWIGINTERN int
-SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val) 
-{
-  if (PyInt_Check(obj)) {
-    long v = PyInt_AsLong(obj);
-    if (v >= 0) {
-      if (val) *val = v;
-      return SWIG_OK;
-    } else {
-      return SWIG_OverflowError;
-    }
-  } else if (PyLong_Check(obj)) {
-    unsigned long v = PyLong_AsUnsignedLong(obj);
-    if (!PyErr_Occurred()) {
-      if (val) *val = v;
-      return SWIG_OK;
-    } else {
-      PyErr_Clear();
-    }
-  }
-#ifdef SWIG_PYTHON_CAST_MODE
-  {
-    int dispatch = 0;
-    unsigned long v = PyLong_AsUnsignedLong(obj);
-    if (!PyErr_Occurred()) {
-      if (val) *val = v;
-      return SWIG_AddCast(SWIG_OK);
-    } else {
-      PyErr_Clear();
-    }
-    if (!dispatch) {
-      double d;
-      int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
-      if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) {
-	if (val) *val = (unsigned long)(d);
-	return res;
-      }
-    }
-  }
-#endif
-  return SWIG_TypeError;
-}
-
-
-SWIGINTERN int
-SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
-{
-  unsigned long v;
-  int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
-  if (SWIG_IsOK(res)) {
-    if ((v > UINT_MAX)) {
-      return SWIG_OverflowError;
-    } else {
-      if (val) *val = (unsigned int)(v);
-    }
-  }  
-  return res;
-}
-
-
-SWIGINTERN int
-SWIG_AsCharArray(PyObject * obj, char *val, size_t size)
-{ 
-  char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ;
-  int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc);
-  if (SWIG_IsOK(res)) {
-    if ((csize == size + 1) && cptr && !(cptr[csize-1])) --csize;
-    if (csize <= size) {
-      if (val) {
-	if (csize) memcpy(val, cptr, csize*sizeof(char));
-	if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char));
-      }
-      if (alloc == SWIG_NEWOBJ) {
-	free((char*)cptr);
-	res = SWIG_DelNewMask(res);
-      }      
-      return res;
-    }
-    if (alloc == SWIG_NEWOBJ) free((char*)cptr);
-  }
-  return SWIG_TypeError;
-}
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-SWIGINTERN PyObject *_wrap_new_attrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  PyObject * obj0 = 0 ;
-  struct attrl *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:new_attrl",&obj0)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_attrl" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  result = (struct attrl *)new_attrl(arg1);
-  {
-    PyObject      *obj_batch;
-    struct attrl  *ptr;
-    int           i=0, len=0;
-    
-    if (SARA_DEBUG) printf("Converteren c (struct attrl *) -> python:\n");
-    
-    ptr = result;
-    while (ptr != NULL) {
-      len++;
-      ptr = ptr->next;
-    }
-    resultobj = PyList_New(len);
-    
-    if (SARA_DEBUG) printf("\tSize of List: %d\n", len);
-    
-    if (SARA_DEBUG) printf("\t<Contents>\n");
-    ptr = result;
-    for (i=0; i < len; i++) {
-      obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_attrl,1); 
-      PyList_SetItem(resultobj, i, obj_batch);
-      if (SARA_DEBUG) printf("\t\t- %s\n", ptr->name);
-      ptr = ptr->next;
-    }
-    if (SARA_DEBUG) printf("\t</Contents>\n");
-  }
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_attropl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  PyObject * obj0 = 0 ;
-  struct attropl *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:new_attropl",&obj0)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_attropl" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  result = (struct attropl *)new_attropl(arg1);
-  {
-    PyObject          *obj_batch;
-    struct attropl    *ptr;
-    int               i=0, len=0;
-    
-    if (SARA_DEBUG) printf("Converteren c (struct attropl *) -> python:\n");
-    
-    ptr = result;
-    while (ptr != NULL) {
-      len++;
-      ptr = ptr->next;
-    }
-    resultobj = PyList_New(len);
-    if (SARA_DEBUG) printf("\tSize of List: %d\n", len);
-    
-    if (SARA_DEBUG) printf("\t<Contents>\n");
-    ptr = result;
-    for (i=0; i < len; i++) {
-      obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_attropl,1); 
-      PyList_SetItem(resultobj, i, obj_batch); 
-      ptr = ptr->next;
-    }
-    if (SARA_DEBUG) printf("\t</Contents>\n");
-  }
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_batch_status(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct batch_status *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":new_batch_status")) SWIG_fail;
-  result = (struct batch_status *)new_batch_status();
-  {
-    PyObject              *obj_batch;
-    struct batch_status   *ptr;
-    int                   i=0, len=0;
-    
-    // printf("Ja we are in bussniss\n");
-    if (SARA_DEBUG) printf("Converteren c (struct batch_status *) -> python:\n");
-    
-    // Deterime length of list
-    //
-    ptr = result;
-    while (ptr != NULL) {
-      len++;
-      ptr = ptr->next;
-    }
-    resultobj = PyList_New(len);
-    
-    if (SARA_DEBUG) printf("\tSize of List: %d\n", len);
-    
-    // Make a list of batch_status pointers
-    //
-    if (SARA_DEBUG) printf("\t<Contents>\n");
-    ptr = result;
-    for (i=0; i < len; i++) {
-      obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_batch_status,0); 
-      PyList_SetItem(resultobj, i, obj_batch);
-      if (SARA_DEBUG)  {
-        printf("\t\t- %s\n", ptr->name);
-      }
-      ptr = ptr->next;
-    }
-    
-    if (SARA_DEBUG) printf("\t</Contents>\n");
-  }
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_get_error(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)":get_error")) SWIG_fail;
-  result = (int)get_error();
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_attrl_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct attrl *arg1 = (struct attrl *) 0 ;
-  struct attrl *arg2 = (struct attrl *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:attrl_next_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attrl, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attrl_next_set" "', argument " "1"" of type '" "struct attrl *""'"); 
-  }
-  arg1 = (struct attrl *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_attrl, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "attrl_next_set" "', argument " "2"" of type '" "struct attrl *""'"); 
-  }
-  arg2 = (struct attrl *)(argp2);
-  if (arg1) (arg1)->next = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_attrl_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct attrl *arg1 = (struct attrl *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  struct attrl *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:attrl_next_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attrl, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attrl_next_get" "', argument " "1"" of type '" "struct attrl *""'"); 
-  }
-  arg1 = (struct attrl *)(argp1);
-  result = (struct attrl *) ((arg1)->next);
-  {
-    PyObject      *obj_batch;
-    struct attrl  *ptr;
-    int           i=0, len=0;
-    
-    if (SARA_DEBUG) printf("Converteren c (struct attrl *) -> python:\n");
-    
-    ptr = result;
-    while (ptr != NULL) {
-      len++;
-      ptr = ptr->next;
-    }
-    resultobj = PyList_New(len);
-    
-    if (SARA_DEBUG) printf("\tSize of List: %d\n", len);
-    
-    if (SARA_DEBUG) printf("\t<Contents>\n");
-    ptr = result;
-    for (i=0; i < len; i++) {
-      obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_attrl,1); 
-      PyList_SetItem(resultobj, i, obj_batch);
-      if (SARA_DEBUG) printf("\t\t- %s\n", ptr->name);
-      ptr = ptr->next;
-    }
-    if (SARA_DEBUG) printf("\t</Contents>\n");
-  }
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_attrl_name_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct attrl *arg1 = (struct attrl *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:attrl_name_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attrl, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attrl_name_set" "', argument " "1"" of type '" "struct attrl *""'"); 
-  }
-  arg1 = (struct attrl *)(argp1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "attrl_name_set" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  if (arg1->name) free((char*)arg1->name);
-  if (arg2) {
-    size_t size = strlen((const char *)(arg2)) + 1;
-    arg1->name = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
-  } else {
-    arg1->name = 0;
-  }
-  resultobj = SWIG_Py_Void();
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_attrl_name_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct attrl *arg1 = (struct attrl *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:attrl_name_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attrl, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attrl_name_get" "', argument " "1"" of type '" "struct attrl *""'"); 
-  }
-  arg1 = (struct attrl *)(argp1);
-  result = (char *) ((arg1)->name);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_attrl_resource_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct attrl *arg1 = (struct attrl *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:attrl_resource_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attrl, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attrl_resource_set" "', argument " "1"" of type '" "struct attrl *""'"); 
-  }
-  arg1 = (struct attrl *)(argp1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "attrl_resource_set" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  if (arg1->resource) free((char*)arg1->resource);
-  if (arg2) {
-    size_t size = strlen((const char *)(arg2)) + 1;
-    arg1->resource = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
-  } else {
-    arg1->resource = 0;
-  }
-  resultobj = SWIG_Py_Void();
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_attrl_resource_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct attrl *arg1 = (struct attrl *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:attrl_resource_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attrl, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attrl_resource_get" "', argument " "1"" of type '" "struct attrl *""'"); 
-  }
-  arg1 = (struct attrl *)(argp1);
-  result = (char *) ((arg1)->resource);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_attrl_value_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct attrl *arg1 = (struct attrl *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:attrl_value_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attrl, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attrl_value_set" "', argument " "1"" of type '" "struct attrl *""'"); 
-  }
-  arg1 = (struct attrl *)(argp1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "attrl_value_set" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  if (arg1->value) free((char*)arg1->value);
-  if (arg2) {
-    size_t size = strlen((const char *)(arg2)) + 1;
-    arg1->value = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
-  } else {
-    arg1->value = 0;
-  }
-  resultobj = SWIG_Py_Void();
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_attrl_value_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct attrl *arg1 = (struct attrl *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:attrl_value_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attrl, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attrl_value_get" "', argument " "1"" of type '" "struct attrl *""'"); 
-  }
-  arg1 = (struct attrl *)(argp1);
-  result = (char *) ((arg1)->value);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_attrl_op_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct attrl *arg1 = (struct attrl *) 0 ;
-  enum batch_op arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:attrl_op_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attrl, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attrl_op_set" "', argument " "1"" of type '" "struct attrl *""'"); 
-  }
-  arg1 = (struct attrl *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "attrl_op_set" "', argument " "2"" of type '" "enum batch_op""'");
-  } 
-  arg2 = (enum batch_op)(val2);
-  if (arg1) (arg1)->op = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_attrl_op_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct attrl *arg1 = (struct attrl *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  enum batch_op result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:attrl_op_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attrl, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attrl_op_get" "', argument " "1"" of type '" "struct attrl *""'"); 
-  }
-  arg1 = (struct attrl *)(argp1);
-  result = (enum batch_op) ((arg1)->op);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_attrl___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct attrl *arg1 = (struct attrl *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:attrl___str__",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attrl, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attrl___str__" "', argument " "1"" of type '" "struct attrl *""'"); 
-  }
-  arg1 = (struct attrl *)(argp1);
-  result = (char *)attrl___str__(arg1);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_attrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct attrl *arg1 = (struct attrl *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_attrl",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attrl, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_attrl" "', argument " "1"" of type '" "struct attrl *""'"); 
-  }
-  arg1 = (struct attrl *)(argp1);
-  delete_attrl(arg1);
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *attrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_attrl, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_attropl_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct attropl *arg1 = (struct attropl *) 0 ;
-  struct attropl *arg2 = (struct attropl *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:attropl_next_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attropl, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attropl_next_set" "', argument " "1"" of type '" "struct attropl *""'"); 
-  }
-  arg1 = (struct attropl *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_attropl, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "attropl_next_set" "', argument " "2"" of type '" "struct attropl *""'"); 
-  }
-  arg2 = (struct attropl *)(argp2);
-  if (arg1) (arg1)->next = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_attropl_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct attropl *arg1 = (struct attropl *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  struct attropl *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:attropl_next_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attropl, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attropl_next_get" "', argument " "1"" of type '" "struct attropl *""'"); 
-  }
-  arg1 = (struct attropl *)(argp1);
-  result = (struct attropl *) ((arg1)->next);
-  {
-    PyObject          *obj_batch;
-    struct attropl    *ptr;
-    int               i=0, len=0;
-    
-    if (SARA_DEBUG) printf("Converteren c (struct attropl *) -> python:\n");
-    
-    ptr = result;
-    while (ptr != NULL) {
-      len++;
-      ptr = ptr->next;
-    }
-    resultobj = PyList_New(len);
-    if (SARA_DEBUG) printf("\tSize of List: %d\n", len);
-    
-    if (SARA_DEBUG) printf("\t<Contents>\n");
-    ptr = result;
-    for (i=0; i < len; i++) {
-      obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_attropl,1); 
-      PyList_SetItem(resultobj, i, obj_batch); 
-      ptr = ptr->next;
-    }
-    if (SARA_DEBUG) printf("\t</Contents>\n");
-  }
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_attropl_name_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct attropl *arg1 = (struct attropl *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:attropl_name_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attropl, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attropl_name_set" "', argument " "1"" of type '" "struct attropl *""'"); 
-  }
-  arg1 = (struct attropl *)(argp1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "attropl_name_set" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  if (arg1->name) free((char*)arg1->name);
-  if (arg2) {
-    size_t size = strlen((const char *)(arg2)) + 1;
-    arg1->name = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
-  } else {
-    arg1->name = 0;
-  }
-  resultobj = SWIG_Py_Void();
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_attropl_name_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct attropl *arg1 = (struct attropl *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:attropl_name_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attropl, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attropl_name_get" "', argument " "1"" of type '" "struct attropl *""'"); 
-  }
-  arg1 = (struct attropl *)(argp1);
-  result = (char *) ((arg1)->name);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_attropl_resource_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct attropl *arg1 = (struct attropl *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:attropl_resource_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attropl, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attropl_resource_set" "', argument " "1"" of type '" "struct attropl *""'"); 
-  }
-  arg1 = (struct attropl *)(argp1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "attropl_resource_set" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  if (arg1->resource) free((char*)arg1->resource);
-  if (arg2) {
-    size_t size = strlen((const char *)(arg2)) + 1;
-    arg1->resource = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
-  } else {
-    arg1->resource = 0;
-  }
-  resultobj = SWIG_Py_Void();
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_attropl_resource_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct attropl *arg1 = (struct attropl *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:attropl_resource_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attropl, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attropl_resource_get" "', argument " "1"" of type '" "struct attropl *""'"); 
-  }
-  arg1 = (struct attropl *)(argp1);
-  result = (char *) ((arg1)->resource);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_attropl_value_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct attropl *arg1 = (struct attropl *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:attropl_value_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attropl, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attropl_value_set" "', argument " "1"" of type '" "struct attropl *""'"); 
-  }
-  arg1 = (struct attropl *)(argp1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "attropl_value_set" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  if (arg1->value) free((char*)arg1->value);
-  if (arg2) {
-    size_t size = strlen((const char *)(arg2)) + 1;
-    arg1->value = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
-  } else {
-    arg1->value = 0;
-  }
-  resultobj = SWIG_Py_Void();
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_attropl_value_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct attropl *arg1 = (struct attropl *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:attropl_value_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attropl, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attropl_value_get" "', argument " "1"" of type '" "struct attropl *""'"); 
-  }
-  arg1 = (struct attropl *)(argp1);
-  result = (char *) ((arg1)->value);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_attropl_op_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct attropl *arg1 = (struct attropl *) 0 ;
-  enum batch_op arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:attropl_op_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attropl, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attropl_op_set" "', argument " "1"" of type '" "struct attropl *""'"); 
-  }
-  arg1 = (struct attropl *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "attropl_op_set" "', argument " "2"" of type '" "enum batch_op""'");
-  } 
-  arg2 = (enum batch_op)(val2);
-  if (arg1) (arg1)->op = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_attropl_op_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct attropl *arg1 = (struct attropl *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  enum batch_op result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:attropl_op_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attropl, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attropl_op_get" "', argument " "1"" of type '" "struct attropl *""'"); 
-  }
-  arg1 = (struct attropl *)(argp1);
-  result = (enum batch_op) ((arg1)->op);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_attropl___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct attropl *arg1 = (struct attropl *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:attropl___str__",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attropl, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "attropl___str__" "', argument " "1"" of type '" "struct attropl *""'"); 
-  }
-  arg1 = (struct attropl *)(argp1);
-  result = (char *)attropl___str__(arg1);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_attropl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct attropl *arg1 = (struct attropl *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_attropl",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_attropl, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_attropl" "', argument " "1"" of type '" "struct attropl *""'"); 
-  }
-  arg1 = (struct attropl *)(argp1);
-  delete_attropl(arg1);
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *attropl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_attropl, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_batch_status_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct batch_status *arg1 = (struct batch_status *) 0 ;
-  struct batch_status *arg2 = (struct batch_status *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:batch_status_next_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_batch_status, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "batch_status_next_set" "', argument " "1"" of type '" "struct batch_status *""'"); 
-  }
-  arg1 = (struct batch_status *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_batch_status, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "batch_status_next_set" "', argument " "2"" of type '" "struct batch_status *""'"); 
-  }
-  arg2 = (struct batch_status *)(argp2);
-  if (arg1) (arg1)->next = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_batch_status_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct batch_status *arg1 = (struct batch_status *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  struct batch_status *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:batch_status_next_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_batch_status, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "batch_status_next_get" "', argument " "1"" of type '" "struct batch_status *""'"); 
-  }
-  arg1 = (struct batch_status *)(argp1);
-  result = (struct batch_status *) ((arg1)->next);
-  {
-    PyObject              *obj_batch;
-    struct batch_status   *ptr;
-    int                   i=0, len=0;
-    
-    // printf("Ja we are in bussniss\n");
-    if (SARA_DEBUG) printf("Converteren c (struct batch_status *) -> python:\n");
-    
-    // Deterime length of list
-    //
-    ptr = result;
-    while (ptr != NULL) {
-      len++;
-      ptr = ptr->next;
-    }
-    resultobj = PyList_New(len);
-    
-    if (SARA_DEBUG) printf("\tSize of List: %d\n", len);
-    
-    // Make a list of batch_status pointers
-    //
-    if (SARA_DEBUG) printf("\t<Contents>\n");
-    ptr = result;
-    for (i=0; i < len; i++) {
-      obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_batch_status,0); 
-      PyList_SetItem(resultobj, i, obj_batch);
-      if (SARA_DEBUG)  {
-        printf("\t\t- %s\n", ptr->name);
-      }
-      ptr = ptr->next;
-    }
-    
-    if (SARA_DEBUG) printf("\t</Contents>\n");
-  }
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_batch_status_name_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct batch_status *arg1 = (struct batch_status *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:batch_status_name_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_batch_status, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "batch_status_name_set" "', argument " "1"" of type '" "struct batch_status *""'"); 
-  }
-  arg1 = (struct batch_status *)(argp1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "batch_status_name_set" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  if (arg1->name) free((char*)arg1->name);
-  if (arg2) {
-    size_t size = strlen((const char *)(arg2)) + 1;
-    arg1->name = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
-  } else {
-    arg1->name = 0;
-  }
-  resultobj = SWIG_Py_Void();
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_batch_status_name_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct batch_status *arg1 = (struct batch_status *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:batch_status_name_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_batch_status, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "batch_status_name_get" "', argument " "1"" of type '" "struct batch_status *""'"); 
-  }
-  arg1 = (struct batch_status *)(argp1);
-  result = (char *) ((arg1)->name);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_batch_status_attribs_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct batch_status *arg1 = (struct batch_status *) 0 ;
-  struct attrl *arg2 = (struct attrl *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:batch_status_attribs_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_batch_status, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "batch_status_attribs_set" "', argument " "1"" of type '" "struct batch_status *""'"); 
-  }
-  arg1 = (struct batch_status *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_attrl, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "batch_status_attribs_set" "', argument " "2"" of type '" "struct attrl *""'"); 
-  }
-  arg2 = (struct attrl *)(argp2);
-  if (arg1) (arg1)->attribs = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_batch_status_attribs_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct batch_status *arg1 = (struct batch_status *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  struct attrl *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:batch_status_attribs_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_batch_status, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "batch_status_attribs_get" "', argument " "1"" of type '" "struct batch_status *""'"); 
-  }
-  arg1 = (struct batch_status *)(argp1);
-  result = (struct attrl *) ((arg1)->attribs);
-  {
-    PyObject      *obj_batch;
-    struct attrl  *ptr;
-    int           i=0, len=0;
-    
-    if (SARA_DEBUG) printf("Converteren c (struct attrl *) -> python:\n");
-    
-    ptr = result;
-    while (ptr != NULL) {
-      len++;
-      ptr = ptr->next;
-    }
-    resultobj = PyList_New(len);
-    
-    if (SARA_DEBUG) printf("\tSize of List: %d\n", len);
-    
-    if (SARA_DEBUG) printf("\t<Contents>\n");
-    ptr = result;
-    for (i=0; i < len; i++) {
-      obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_attrl,1); 
-      PyList_SetItem(resultobj, i, obj_batch);
-      if (SARA_DEBUG) printf("\t\t- %s\n", ptr->name);
-      ptr = ptr->next;
-    }
-    if (SARA_DEBUG) printf("\t</Contents>\n");
-  }
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_batch_status_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct batch_status *arg1 = (struct batch_status *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:batch_status_text_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_batch_status, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "batch_status_text_set" "', argument " "1"" of type '" "struct batch_status *""'"); 
-  }
-  arg1 = (struct batch_status *)(argp1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "batch_status_text_set" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  if (arg1->text) free((char*)arg1->text);
-  if (arg2) {
-    size_t size = strlen((const char *)(arg2)) + 1;
-    arg1->text = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
-  } else {
-    arg1->text = 0;
-  }
-  resultobj = SWIG_Py_Void();
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_batch_status_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct batch_status *arg1 = (struct batch_status *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:batch_status_text_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_batch_status, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "batch_status_text_get" "', argument " "1"" of type '" "struct batch_status *""'"); 
-  }
-  arg1 = (struct batch_status *)(argp1);
-  result = (char *) ((arg1)->text);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *batch_status_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_batch_status, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN int Swig_var_pbs_errno_set(PyObject *_val) {
-  {
-    int val;
-    int res = SWIG_AsVal_int(_val, &val);
-    if (!SWIG_IsOK(res)) {
-      SWIG_exception_fail(SWIG_ArgError(res), "in variable '""pbs_errno""' of type '""int""'");
-    }
-    pbs_errno = (int)(val);
-  }
-  return 0;
-fail:
-  return 1;
-}
-
-
-SWIGINTERN PyObject *Swig_var_pbs_errno_get(void) {
-  PyObject *pyobj = 0;
-  
-  pyobj = SWIG_From_int((int)(pbs_errno));
-  return pyobj;
-}
-
-
-SWIGINTERN int Swig_var_pbs_server_set(PyObject *_val) {
-  {
-    char *cptr = 0; size_t csize = 0; int alloc = SWIG_NEWOBJ;
-    int res = SWIG_AsCharPtrAndSize(_val, &cptr, &csize, &alloc);
-    if (!SWIG_IsOK(res)) {
-      SWIG_exception_fail(SWIG_ArgError(res), "in variable '""pbs_server""' of type '""char *""'");
-    }
-    if (pbs_server) free((char*)pbs_server);
-    if (alloc == SWIG_NEWOBJ) {
-      pbs_server = cptr;
-    } else {
-      pbs_server = csize ? (char *)(char *)memcpy((char *)malloc((csize)*sizeof(char)), cptr, sizeof(char)*(csize)) : 0;
-    }
-  }
-  return 0;
-fail:
-  return 1;
-}
-
-
-SWIGINTERN PyObject *Swig_var_pbs_server_get(void) {
-  PyObject *pyobj = 0;
-  
-  pyobj = SWIG_FromCharPtr(pbs_server);
-  return pyobj;
-}
-
-
-SWIGINTERN PyObject *_wrap_avail(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  char *arg2 = (char *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:avail",&obj0,&obj1)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "avail" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "avail" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  result = (char *)avail(arg1,arg2);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_asyrunjob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  char *arg4 = (char *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  int res3 ;
-  char *buf3 = 0 ;
-  int alloc3 = 0 ;
-  int res4 ;
-  char *buf4 = 0 ;
-  int alloc4 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOO:pbs_asyrunjob",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_asyrunjob" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_asyrunjob" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_asyrunjob" "', argument " "3"" of type '" "char *""'");
-  }
-  arg3 = (char *)(buf3);
-  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
-  if (!SWIG_IsOK(res4)) {
-    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_asyrunjob" "', argument " "4"" of type '" "char *""'");
-  }
-  arg4 = (char *)(buf4);
-  result = (int)pbs_asyrunjob(arg1,arg2,arg3,arg4);
-  resultobj = SWIG_From_int((int)(result));
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_alterjob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  char *arg2 = (char *) 0 ;
-  struct attrl *arg3 = (struct attrl *) 0 ;
-  char *arg4 = (char *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  int res4 ;
-  char *buf4 = 0 ;
-  int alloc4 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOO:pbs_alterjob",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_alterjob" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_alterjob" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  {
-    PyObject      *py_obj;
-    struct attrl  *ptr, *prev;
-    char          s[255];
-    int           i=0, size=0;
-    
-    // printf("Python --> C\n");
-    
-    if (SARA_DEBUG) printf("Converteren python -> c (struct attrl *):\n");
-    
-    size = Get_List_Size(obj2);
-    if (SARA_DEBUG) printf("\tSize of attrl List: %d\n", size);
-    
-    if ( size == -1 ) {
-      PyErr_SetString(PyExc_TypeError, "not a list");
-      return NULL; 
-    }
-    
-    if (SARA_DEBUG) printf("\t<Contents>\n");
-    
-    arg3 = prev = NULL;
-    for ( i=0; i < size; i++ ) {
-      py_obj = PyList_GetItem(obj2, i);
-      if (SWIG_ConvertPtr(py_obj, (void **) &ptr, SWIGTYPE_p_attrl, 1)) {
-        sprintf(s,"list item %d has wrong type", i);
-        PyErr_SetString(PyExc_TypeError, s);
-        return NULL;
-        
-        // This will skipp the wrong entry
-        // continue;
-      }
-      
-      /* 
-           * Make first entry head of C linked list
-          */ 
-      if ( i == 0) {
-        arg3 = ptr;
-        ptr->next = prev;
-      }
-      else {
-        prev->next = ptr;
-        ptr->next = NULL;
-      }
-      if (SARA_DEBUG) printf("\t\t- %s\n", ptr->name);
-      
-      prev = ptr;
-      
-    } // end for
-    if (SARA_DEBUG) printf("\t</Contents>\n");
-  }
-  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
-  if (!SWIG_IsOK(res4)) {
-    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_alterjob" "', argument " "4"" of type '" "char *""'");
-  }
-  arg4 = (char *)(buf4);
-  result = (int)pbs_alterjob(arg1,arg2,arg3,arg4);
-  resultobj = SWIG_From_int((int)(result));
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_connect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  char *arg1 = (char *) 0 ;
-  int res1 ;
-  char *buf1 = 0 ;
-  int alloc1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:pbs_connect",&obj0)) SWIG_fail;
-  res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pbs_connect" "', argument " "1"" of type '" "char *""'");
-  }
-  arg1 = (char *)(buf1);
-  result = (int)pbs_connect(arg1);
-  resultobj = SWIG_From_int((int)(result));
-  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-  return resultobj;
-fail:
-  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_query_max_connections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)":pbs_query_max_connections")) SWIG_fail;
-  result = (int)pbs_query_max_connections();
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_default(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":pbs_default")) SWIG_fail;
-  result = (char *)pbs_default();
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_deljob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  int res3 ;
-  char *buf3 = 0 ;
-  int alloc3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO:pbs_deljob",&obj0,&obj1,&obj2)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_deljob" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_deljob" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_deljob" "', argument " "3"" of type '" "char *""'");
-  }
-  arg3 = (char *)(buf3);
-  result = (int)pbs_deljob(arg1,arg2,arg3);
-  resultobj = SWIG_From_int((int)(result));
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_disconnect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:pbs_disconnect",&obj0)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_disconnect" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  result = (int)pbs_disconnect(arg1);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_geterrmsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:pbs_geterrmsg",&obj0)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_geterrmsg" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  result = (char *)pbs_geterrmsg(arg1);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_holdjob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  char *arg4 = (char *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  int res3 ;
-  char *buf3 = 0 ;
-  int alloc3 = 0 ;
-  int res4 ;
-  char *buf4 = 0 ;
-  int alloc4 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOO:pbs_holdjob",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_holdjob" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_holdjob" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_holdjob" "', argument " "3"" of type '" "char *""'");
-  }
-  arg3 = (char *)(buf3);
-  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
-  if (!SWIG_IsOK(res4)) {
-    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_holdjob" "', argument " "4"" of type '" "char *""'");
-  }
-  arg4 = (char *)(buf4);
-  result = (int)pbs_holdjob(arg1,arg2,arg3,arg4);
-  resultobj = SWIG_From_int((int)(result));
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_locjob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  int res3 ;
-  char *buf3 = 0 ;
-  int alloc3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO:pbs_locjob",&obj0,&obj1,&obj2)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_locjob" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_locjob" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_locjob" "', argument " "3"" of type '" "char *""'");
-  }
-  arg3 = (char *)(buf3);
-  result = (char *)pbs_locjob(arg1,arg2,arg3);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_manager(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  int arg2 ;
-  int arg3 ;
-  char *arg4 = (char *) 0 ;
-  struct attropl *arg5 = (struct attropl *) 0 ;
-  char *arg6 = (char *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  int val3 ;
-  int ecode3 = 0 ;
-  int res4 ;
-  char *buf4 = 0 ;
-  int alloc4 = 0 ;
-  int res6 ;
-  char *buf6 = 0 ;
-  int alloc6 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  PyObject * obj4 = 0 ;
-  PyObject * obj5 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pbs_manager",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_manager" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pbs_manager" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  ecode3 = SWIG_AsVal_int(obj2, &val3);
-  if (!SWIG_IsOK(ecode3)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pbs_manager" "', argument " "3"" of type '" "int""'");
-  } 
-  arg3 = (int)(val3);
-  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
-  if (!SWIG_IsOK(res4)) {
-    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_manager" "', argument " "4"" of type '" "char *""'");
-  }
-  arg4 = (char *)(buf4);
-  {
-    PyObject          *py_obj;
-    struct attropl    *ptr, *prev;
-    char              s[255];
-    int               i=0, size=0;
-    
-    // printf("Python --> C\n");
-    
-    if (SARA_DEBUG) printf("Converteren python -> c (struct attropl *):\n");
-    
-    size = Get_List_Size(obj4);
-    
-    if (SARA_DEBUG) printf("\tSize attropl List: %d\n", size);
-    
-    if ( size == -1 ) {
-      PyErr_SetString(PyExc_TypeError, "not a list");
-      return NULL; 
-    }
-    //printf("Size = %d\n", size);
-    
-    if (SARA_DEBUG) printf("\t<Contents>\n");
-    
-    arg5 = prev = NULL;
-    for ( i=0; i < size; i++ ) {
-      py_obj = PyList_GetItem(obj4, i);
-      if (SWIG_ConvertPtr(py_obj, (void **) &ptr, SWIGTYPE_p_attropl, 1)) {
-        sprintf(s,"list item %d has wrong type", i);
-        PyErr_SetString(PyExc_TypeError, s);
-        return NULL;
-        
-        // This will skipp the wrong entry
-        // continue;
-      }
-      
-      /* 
-           * Make first entry head of C linked list
-          */ 
-      if ( i == 0) {
-        arg5 = ptr;
-        ptr->next = prev;
-      }
-      else {
-        prev->next = ptr;
-        ptr->next = NULL;
-      }
-      prev = ptr;
-      
-    } // end for
-    if (SARA_DEBUG) printf("\t</Contents>\n");
-  }
-  res6 = SWIG_AsCharPtrAndSize(obj5, &buf6, NULL, &alloc6);
-  if (!SWIG_IsOK(res6)) {
-    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "pbs_manager" "', argument " "6"" of type '" "char *""'");
-  }
-  arg6 = (char *)(buf6);
-  result = (int)pbs_manager(arg1,arg2,arg3,arg4,arg5,arg6);
-  resultobj = SWIG_From_int((int)(result));
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  if (alloc6 == SWIG_NEWOBJ) free((char*)buf6);
-  return resultobj;
-fail:
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  if (alloc6 == SWIG_NEWOBJ) free((char*)buf6);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_movejob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  char *arg4 = (char *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  int res3 ;
-  char *buf3 = 0 ;
-  int alloc3 = 0 ;
-  int res4 ;
-  char *buf4 = 0 ;
-  int alloc4 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOO:pbs_movejob",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_movejob" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_movejob" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_movejob" "', argument " "3"" of type '" "char *""'");
-  }
-  arg3 = (char *)(buf3);
-  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
-  if (!SWIG_IsOK(res4)) {
-    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_movejob" "', argument " "4"" of type '" "char *""'");
-  }
-  arg4 = (char *)(buf4);
-  result = (int)pbs_movejob(arg1,arg2,arg3,arg4);
-  resultobj = SWIG_From_int((int)(result));
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_msgjob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  char *arg2 = (char *) 0 ;
-  int arg3 ;
-  char *arg4 = (char *) 0 ;
-  char *arg5 = (char *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  int val3 ;
-  int ecode3 = 0 ;
-  int res4 ;
-  char *buf4 = 0 ;
-  int alloc4 = 0 ;
-  int res5 ;
-  char *buf5 = 0 ;
-  int alloc5 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  PyObject * obj4 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOOO:pbs_msgjob",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_msgjob" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_msgjob" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  ecode3 = SWIG_AsVal_int(obj2, &val3);
-  if (!SWIG_IsOK(ecode3)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pbs_msgjob" "', argument " "3"" of type '" "int""'");
-  } 
-  arg3 = (int)(val3);
-  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
-  if (!SWIG_IsOK(res4)) {
-    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_msgjob" "', argument " "4"" of type '" "char *""'");
-  }
-  arg4 = (char *)(buf4);
-  res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5);
-  if (!SWIG_IsOK(res5)) {
-    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pbs_msgjob" "', argument " "5"" of type '" "char *""'");
-  }
-  arg5 = (char *)(buf5);
-  result = (int)pbs_msgjob(arg1,arg2,arg3,arg4,arg5);
-  resultobj = SWIG_From_int((int)(result));
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_orderjob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  char *arg4 = (char *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  int res3 ;
-  char *buf3 = 0 ;
-  int alloc3 = 0 ;
-  int res4 ;
-  char *buf4 = 0 ;
-  int alloc4 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOO:pbs_orderjob",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_orderjob" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_orderjob" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_orderjob" "', argument " "3"" of type '" "char *""'");
-  }
-  arg3 = (char *)(buf3);
-  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
-  if (!SWIG_IsOK(res4)) {
-    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_orderjob" "', argument " "4"" of type '" "char *""'");
-  }
-  arg4 = (char *)(buf4);
-  result = (int)pbs_orderjob(arg1,arg2,arg3,arg4);
-  resultobj = SWIG_From_int((int)(result));
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_rescquery(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  char **arg2 = (char **) 0 ;
-  int arg3 ;
-  int *arg4 = (int *) 0 ;
-  int *arg5 = (int *) 0 ;
-  int *arg6 = (int *) 0 ;
-  int *arg7 = (int *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int val3 ;
-  int ecode3 = 0 ;
-  void *argp4 = 0 ;
-  int res4 = 0 ;
-  void *argp5 = 0 ;
-  int res5 = 0 ;
-  void *argp6 = 0 ;
-  int res6 = 0 ;
-  void *argp7 = 0 ;
-  int res7 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  PyObject * obj4 = 0 ;
-  PyObject * obj5 = 0 ;
-  PyObject * obj6 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:pbs_rescquery",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_rescquery" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  {
-    int       i=0, size=0;
-    PyObject  *py_obj;
-    
-    if (SARA_DEBUG) printf("Convert python -> c (char **):\n");
-    
-    size = Get_List_Size(obj1);
-    
-    if (SARA_DEBUG) printf("\tSize of List: %d\n", size);
-    
-    if ( size == -1 ) {
-      PyErr_SetString(PyExc_TypeError, "not a list");
-      return NULL; 
-    }
-    // printf("Size = %d\n", size);
-    
-    if (SARA_DEBUG) printf("\t<Contents>\n");
-    
-    arg2 = (char **) malloc( (size+1) * sizeof(char *));
-    for (i=0; i < size; i++) {
-      py_obj = PyList_GetItem(obj1, i);
-      if (PyString_Check(py_obj)) {
-        arg2[i] = PyString_AsString(py_obj);
-        if (SARA_DEBUG) printf("%s", arg2[i]);
-      }
-      else {
-        PyErr_SetString(PyExc_TypeError, "not a list of strings");
-        free(arg2);
-        return NULL; 
-      }
-    } // end for
-    arg2[i] = 0;
-    if (SARA_DEBUG) printf("\t</Contents>\n");
-  }
-  ecode3 = SWIG_AsVal_int(obj2, &val3);
-  if (!SWIG_IsOK(ecode3)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pbs_rescquery" "', argument " "3"" of type '" "int""'");
-  } 
-  arg3 = (int)(val3);
-  res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_int, 0 |  0 );
-  if (!SWIG_IsOK(res4)) {
-    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_rescquery" "', argument " "4"" of type '" "int *""'"); 
-  }
-  arg4 = (int *)(argp4);
-  res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 |  0 );
-  if (!SWIG_IsOK(res5)) {
-    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pbs_rescquery" "', argument " "5"" of type '" "int *""'"); 
-  }
-  arg5 = (int *)(argp5);
-  res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_int, 0 |  0 );
-  if (!SWIG_IsOK(res6)) {
-    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "pbs_rescquery" "', argument " "6"" of type '" "int *""'"); 
-  }
-  arg6 = (int *)(argp6);
-  res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_int, 0 |  0 );
-  if (!SWIG_IsOK(res7)) {
-    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "pbs_rescquery" "', argument " "7"" of type '" "int *""'"); 
-  }
-  arg7 = (int *)(argp7);
-  result = (int)pbs_rescquery(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
-  resultobj = SWIG_From_int((int)(result));
-  {
-    free( (char *) arg2);
-  }
-  return resultobj;
-fail:
-  {
-    free( (char *) arg2);
-  }
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_rescreserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  char **arg2 = (char **) 0 ;
-  int arg3 ;
-  resource_t *arg4 = (resource_t *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int val3 ;
-  int ecode3 = 0 ;
-  void *argp4 = 0 ;
-  int res4 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOO:pbs_rescreserve",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_rescreserve" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  {
-    int       i=0, size=0;
-    PyObject  *py_obj;
-    
-    if (SARA_DEBUG) printf("Convert python -> c (char **):\n");
-    
-    size = Get_List_Size(obj1);
-    
-    if (SARA_DEBUG) printf("\tSize of List: %d\n", size);
-    
-    if ( size == -1 ) {
-      PyErr_SetString(PyExc_TypeError, "not a list");
-      return NULL; 
-    }
-    // printf("Size = %d\n", size);
-    
-    if (SARA_DEBUG) printf("\t<Contents>\n");
-    
-    arg2 = (char **) malloc( (size+1) * sizeof(char *));
-    for (i=0; i < size; i++) {
-      py_obj = PyList_GetItem(obj1, i);
-      if (PyString_Check(py_obj)) {
-        arg2[i] = PyString_AsString(py_obj);
-        if (SARA_DEBUG) printf("%s", arg2[i]);
-      }
-      else {
-        PyErr_SetString(PyExc_TypeError, "not a list of strings");
-        free(arg2);
-        return NULL; 
-      }
-    } // end for
-    arg2[i] = 0;
-    if (SARA_DEBUG) printf("\t</Contents>\n");
-  }
-  ecode3 = SWIG_AsVal_int(obj2, &val3);
-  if (!SWIG_IsOK(ecode3)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pbs_rescreserve" "', argument " "3"" of type '" "int""'");
-  } 
-  arg3 = (int)(val3);
-  res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_int, 0 |  0 );
-  if (!SWIG_IsOK(res4)) {
-    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_rescreserve" "', argument " "4"" of type '" "resource_t *""'"); 
-  }
-  arg4 = (resource_t *)(argp4);
-  result = (int)pbs_rescreserve(arg1,arg2,arg3,arg4);
-  resultobj = SWIG_From_int((int)(result));
-  {
-    free( (char *) arg2);
-  }
-  return resultobj;
-fail:
-  {
-    free( (char *) arg2);
-  }
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_rescrelease(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  resource_t arg2 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:pbs_rescrelease",&obj0,&obj1)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_rescrelease" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pbs_rescrelease" "', argument " "2"" of type '" "resource_t""'");
-  } 
-  arg2 = (resource_t)(val2);
-  result = (int)pbs_rescrelease(arg1,arg2);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_rerunjob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  int res3 ;
-  char *buf3 = 0 ;
-  int alloc3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO:pbs_rerunjob",&obj0,&obj1,&obj2)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_rerunjob" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_rerunjob" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_rerunjob" "', argument " "3"" of type '" "char *""'");
-  }
-  arg3 = (char *)(buf3);
-  result = (int)pbs_rerunjob(arg1,arg2,arg3);
-  resultobj = SWIG_From_int((int)(result));
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_rlsjob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  char *arg4 = (char *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  int res3 ;
-  char *buf3 = 0 ;
-  int alloc3 = 0 ;
-  int res4 ;
-  char *buf4 = 0 ;
-  int alloc4 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOO:pbs_rlsjob",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_rlsjob" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_rlsjob" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_rlsjob" "', argument " "3"" of type '" "char *""'");
-  }
-  arg3 = (char *)(buf3);
-  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
-  if (!SWIG_IsOK(res4)) {
-    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_rlsjob" "', argument " "4"" of type '" "char *""'");
-  }
-  arg4 = (char *)(buf4);
-  result = (int)pbs_rlsjob(arg1,arg2,arg3,arg4);
-  resultobj = SWIG_From_int((int)(result));
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_runjob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  char *arg4 = (char *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  int res3 ;
-  char *buf3 = 0 ;
-  int alloc3 = 0 ;
-  int res4 ;
-  char *buf4 = 0 ;
-  int alloc4 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOO:pbs_runjob",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_runjob" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_runjob" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_runjob" "', argument " "3"" of type '" "char *""'");
-  }
-  arg3 = (char *)(buf3);
-  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
-  if (!SWIG_IsOK(res4)) {
-    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_runjob" "', argument " "4"" of type '" "char *""'");
-  }
-  arg4 = (char *)(buf4);
-  result = (int)pbs_runjob(arg1,arg2,arg3,arg4);
-  resultobj = SWIG_From_int((int)(result));
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_selectjob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  struct attropl *arg2 = (struct attropl *) 0 ;
-  char *arg3 = (char *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int res3 ;
-  char *buf3 = 0 ;
-  int alloc3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  char **result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO:pbs_selectjob",&obj0,&obj1,&obj2)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_selectjob" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  {
-    PyObject          *py_obj;
-    struct attropl    *ptr, *prev;
-    char              s[255];
-    int               i=0, size=0;
-    
-    // printf("Python --> C\n");
-    
-    if (SARA_DEBUG) printf("Converteren python -> c (struct attropl *):\n");
-    
-    size = Get_List_Size(obj1);
-    
-    if (SARA_DEBUG) printf("\tSize attropl List: %d\n", size);
-    
-    if ( size == -1 ) {
-      PyErr_SetString(PyExc_TypeError, "not a list");
-      return NULL; 
-    }
-    //printf("Size = %d\n", size);
-    
-    if (SARA_DEBUG) printf("\t<Contents>\n");
-    
-    arg2 = prev = NULL;
-    for ( i=0; i < size; i++ ) {
-      py_obj = PyList_GetItem(obj1, i);
-      if (SWIG_ConvertPtr(py_obj, (void **) &ptr, SWIGTYPE_p_attropl, 1)) {
-        sprintf(s,"list item %d has wrong type", i);
-        PyErr_SetString(PyExc_TypeError, s);
-        return NULL;
-        
-        // This will skipp the wrong entry
-        // continue;
-      }
-      
-      /* 
-           * Make first entry head of C linked list
-          */ 
-      if ( i == 0) {
-        arg2 = ptr;
-        ptr->next = prev;
-      }
-      else {
-        prev->next = ptr;
-        ptr->next = NULL;
-      }
-      prev = ptr;
-      
-    } // end for
-    if (SARA_DEBUG) printf("\t</Contents>\n");
-  }
-  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_selectjob" "', argument " "3"" of type '" "char *""'");
-  }
-  arg3 = (char *)(buf3);
-  result = (char **)pbs_selectjob(arg1,arg2,arg3);
-  {
-    int len=0, i;
-    
-    if (SARA_DEBUG) 
-    printf("Converteren char ** -> python list\n");
-    
-    
-    if (result == NULL) 
-    resultobj = PyList_New(0);
-    else {
-      while (result[len]) 
-      len++;
-    }
-    
-    if (SARA_DEBUG) 
-    printf("\tSize of List: %d\n", len);
-    
-    resultobj = PyList_New(len);
-    if (SARA_DEBUG) 
-    printf("\t<Contents>\n");
-    for (i=0; i < len; i++ ) {
-      PyList_SetItem(resultobj, i , PyString_FromString(result[i])); 
-      if (SARA_DEBUG) 
-      printf("\t\t- %s\n", result[i]);
-    }
-    if (SARA_DEBUG) 
-    printf("\t</Contents>\n");
-  }
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  return resultobj;
-fail:
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_sigjob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  char *arg4 = (char *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  int res3 ;
-  char *buf3 = 0 ;
-  int alloc3 = 0 ;
-  int res4 ;
-  char *buf4 = 0 ;
-  int alloc4 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOO:pbs_sigjob",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_sigjob" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_sigjob" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_sigjob" "', argument " "3"" of type '" "char *""'");
-  }
-  arg3 = (char *)(buf3);
-  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
-  if (!SWIG_IsOK(res4)) {
-    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_sigjob" "', argument " "4"" of type '" "char *""'");
-  }
-  arg4 = (char *)(buf4);
-  result = (int)pbs_sigjob(arg1,arg2,arg3,arg4);
-  resultobj = SWIG_From_int((int)(result));
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_statfree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct batch_status *arg1 = (struct batch_status *) 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:pbs_statfree",&obj0)) SWIG_fail;
-  {
-    PyObject              *py_obj;
-    struct batch_status   *ptr, *prev;
-    char                  s[255];
-    int                   i=0, size=0;
-    
-    // printf("Python --> C\n");
-    
-    if (SARA_DEBUG) printf("Converteren python -> c (struct batch_status *):\n");
-    
-    size = Get_List_Size(obj0);
-    if (SARA_DEBUG) printf("\tSize of batch_status list: %d\n", size);
-    
-    if ( size == -1 ) {
-      PyErr_SetString(PyExc_TypeError, "not a list");
-      return NULL; 
-    }
-    // printf("Size = %d\n", size);
-    
-    if (SARA_DEBUG) printf("\t<Contents>\n");
-    
-    arg1 = prev = NULL;
-    for ( i=0; i < size; i++ ) {
-      py_obj = PyList_GetItem(obj0, i);
-      if (SWIG_ConvertPtr(py_obj, (void **) &ptr, SWIGTYPE_p_batch_status, 1)) {
-        sprintf(s,"list item %d has wrong type", i);
-        PyErr_SetString(PyExc_TypeError, s);
-        return NULL;
-        
-        // This will skipp the wrong entry
-        // continue;
-      }
-      
-      /* 
-           * Make first entry head of C linked list
-          */ 
-      if ( i == 0) {
-        arg1 = ptr;
-        ptr->next = prev;
-      }
-      else {
-        prev->next = ptr;
-        ptr->next = NULL;
-      }
-      
-      if (SARA_DEBUG) printf("\t\t- %s\n", ptr->name);
-      prev = ptr;
-      
-    } // end for
-    
-    if (SARA_DEBUG) printf("\t</Contents>\n");
-  }
-  pbs_statfree(arg1);
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_statjob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  char *arg2 = (char *) 0 ;
-  struct attrl *arg3 = (struct attrl *) 0 ;
-  char *arg4 = (char *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  int res4 ;
-  char *buf4 = 0 ;
-  int alloc4 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  struct batch_status *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOO:pbs_statjob",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_statjob" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_statjob" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  {
-    PyObject      *py_obj;
-    struct attrl  *ptr, *prev;
-    char          s[255];
-    int           i=0, size=0;
-    
-    // printf("Python --> C\n");
-    
-    if (SARA_DEBUG) printf("Converteren python -> c (struct attrl *):\n");
-    
-    size = Get_List_Size(obj2);
-    if (SARA_DEBUG) printf("\tSize of attrl List: %d\n", size);
-    
-    if ( size == -1 ) {
-      PyErr_SetString(PyExc_TypeError, "not a list");
-      return NULL; 
-    }
-    
-    if (SARA_DEBUG) printf("\t<Contents>\n");
-    
-    arg3 = prev = NULL;
-    for ( i=0; i < size; i++ ) {
-      py_obj = PyList_GetItem(obj2, i);
-      if (SWIG_ConvertPtr(py_obj, (void **) &ptr, SWIGTYPE_p_attrl, 1)) {
-        sprintf(s,"list item %d has wrong type", i);
-        PyErr_SetString(PyExc_TypeError, s);
-        return NULL;
-        
-        // This will skipp the wrong entry
-        // continue;
-      }
-      
-      /* 
-           * Make first entry head of C linked list
-          */ 
-      if ( i == 0) {
-        arg3 = ptr;
-        ptr->next = prev;
-      }
-      else {
-        prev->next = ptr;
-        ptr->next = NULL;
-      }
-      if (SARA_DEBUG) printf("\t\t- %s\n", ptr->name);
-      
-      prev = ptr;
-      
-    } // end for
-    if (SARA_DEBUG) printf("\t</Contents>\n");
-  }
-  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
-  if (!SWIG_IsOK(res4)) {
-    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_statjob" "', argument " "4"" of type '" "char *""'");
-  }
-  arg4 = (char *)(buf4);
-  result = (struct batch_status *)pbs_statjob(arg1,arg2,arg3,arg4);
-  {
-    PyObject              *obj_batch;
-    struct batch_status   *ptr;
-    int                   i=0, len=0;
-    
-    // printf("Ja we are in bussniss\n");
-    if (SARA_DEBUG) printf("Converteren c (struct batch_status *) -> python:\n");
-    
-    // Deterime length of list
-    //
-    ptr = result;
-    while (ptr != NULL) {
-      len++;
-      ptr = ptr->next;
-    }
-    resultobj = PyList_New(len);
-    
-    if (SARA_DEBUG) printf("\tSize of List: %d\n", len);
-    
-    // Make a list of batch_status pointers
-    //
-    if (SARA_DEBUG) printf("\t<Contents>\n");
-    ptr = result;
-    for (i=0; i < len; i++) {
-      obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_batch_status,0); 
-      PyList_SetItem(resultobj, i, obj_batch);
-      if (SARA_DEBUG)  {
-        printf("\t\t- %s\n", ptr->name);
-      }
-      ptr = ptr->next;
-    }
-    
-    if (SARA_DEBUG) printf("\t</Contents>\n");
-  }
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_selstat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  struct attropl *arg2 = (struct attropl *) 0 ;
-  char *arg3 = (char *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int res3 ;
-  char *buf3 = 0 ;
-  int alloc3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  struct batch_status *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO:pbs_selstat",&obj0,&obj1,&obj2)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_selstat" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  {
-    PyObject          *py_obj;
-    struct attropl    *ptr, *prev;
-    char              s[255];
-    int               i=0, size=0;
-    
-    // printf("Python --> C\n");
-    
-    if (SARA_DEBUG) printf("Converteren python -> c (struct attropl *):\n");
-    
-    size = Get_List_Size(obj1);
-    
-    if (SARA_DEBUG) printf("\tSize attropl List: %d\n", size);
-    
-    if ( size == -1 ) {
-      PyErr_SetString(PyExc_TypeError, "not a list");
-      return NULL; 
-    }
-    //printf("Size = %d\n", size);
-    
-    if (SARA_DEBUG) printf("\t<Contents>\n");
-    
-    arg2 = prev = NULL;
-    for ( i=0; i < size; i++ ) {
-      py_obj = PyList_GetItem(obj1, i);
-      if (SWIG_ConvertPtr(py_obj, (void **) &ptr, SWIGTYPE_p_attropl, 1)) {
-        sprintf(s,"list item %d has wrong type", i);
-        PyErr_SetString(PyExc_TypeError, s);
-        return NULL;
-        
-        // This will skipp the wrong entry
-        // continue;
-      }
-      
-      /* 
-           * Make first entry head of C linked list
-          */ 
-      if ( i == 0) {
-        arg2 = ptr;
-        ptr->next = prev;
-      }
-      else {
-        prev->next = ptr;
-        ptr->next = NULL;
-      }
-      prev = ptr;
-      
-    } // end for
-    if (SARA_DEBUG) printf("\t</Contents>\n");
-  }
-  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_selstat" "', argument " "3"" of type '" "char *""'");
-  }
-  arg3 = (char *)(buf3);
-  result = (struct batch_status *)pbs_selstat(arg1,arg2,arg3);
-  {
-    PyObject              *obj_batch;
-    struct batch_status   *ptr;
-    int                   i=0, len=0;
-    
-    // printf("Ja we are in bussniss\n");
-    if (SARA_DEBUG) printf("Converteren c (struct batch_status *) -> python:\n");
-    
-    // Deterime length of list
-    //
-    ptr = result;
-    while (ptr != NULL) {
-      len++;
-      ptr = ptr->next;
-    }
-    resultobj = PyList_New(len);
-    
-    if (SARA_DEBUG) printf("\tSize of List: %d\n", len);
-    
-    // Make a list of batch_status pointers
-    //
-    if (SARA_DEBUG) printf("\t<Contents>\n");
-    ptr = result;
-    for (i=0; i < len; i++) {
-      obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_batch_status,0); 
-      PyList_SetItem(resultobj, i, obj_batch);
-      if (SARA_DEBUG)  {
-        printf("\t\t- %s\n", ptr->name);
-      }
-      ptr = ptr->next;
-    }
-    
-    if (SARA_DEBUG) printf("\t</Contents>\n");
-  }
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  return resultobj;
-fail:
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_statque(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  char *arg2 = (char *) 0 ;
-  struct attrl *arg3 = (struct attrl *) 0 ;
-  char *arg4 = (char *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  int res4 ;
-  char *buf4 = 0 ;
-  int alloc4 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  struct batch_status *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOO:pbs_statque",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_statque" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_statque" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  {
-    PyObject      *py_obj;
-    struct attrl  *ptr, *prev;
-    char          s[255];
-    int           i=0, size=0;
-    
-    // printf("Python --> C\n");
-    
-    if (SARA_DEBUG) printf("Converteren python -> c (struct attrl *):\n");
-    
-    size = Get_List_Size(obj2);
-    if (SARA_DEBUG) printf("\tSize of attrl List: %d\n", size);
-    
-    if ( size == -1 ) {
-      PyErr_SetString(PyExc_TypeError, "not a list");
-      return NULL; 
-    }
-    
-    if (SARA_DEBUG) printf("\t<Contents>\n");
-    
-    arg3 = prev = NULL;
-    for ( i=0; i < size; i++ ) {
-      py_obj = PyList_GetItem(obj2, i);
-      if (SWIG_ConvertPtr(py_obj, (void **) &ptr, SWIGTYPE_p_attrl, 1)) {
-        sprintf(s,"list item %d has wrong type", i);
-        PyErr_SetString(PyExc_TypeError, s);
-        return NULL;
-        
-        // This will skipp the wrong entry
-        // continue;
-      }
-      
-      /* 
-           * Make first entry head of C linked list
-          */ 
-      if ( i == 0) {
-        arg3 = ptr;
-        ptr->next = prev;
-      }
-      else {
-        prev->next = ptr;
-        ptr->next = NULL;
-      }
-      if (SARA_DEBUG) printf("\t\t- %s\n", ptr->name);
-      
-      prev = ptr;
-      
-    } // end for
-    if (SARA_DEBUG) printf("\t</Contents>\n");
-  }
-  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
-  if (!SWIG_IsOK(res4)) {
-    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_statque" "', argument " "4"" of type '" "char *""'");
-  }
-  arg4 = (char *)(buf4);
-  result = (struct batch_status *)pbs_statque(arg1,arg2,arg3,arg4);
-  {
-    PyObject              *obj_batch;
-    struct batch_status   *ptr;
-    int                   i=0, len=0;
-    
-    // printf("Ja we are in bussniss\n");
-    if (SARA_DEBUG) printf("Converteren c (struct batch_status *) -> python:\n");
-    
-    // Deterime length of list
-    //
-    ptr = result;
-    while (ptr != NULL) {
-      len++;
-      ptr = ptr->next;
-    }
-    resultobj = PyList_New(len);
-    
-    if (SARA_DEBUG) printf("\tSize of List: %d\n", len);
-    
-    // Make a list of batch_status pointers
-    //
-    if (SARA_DEBUG) printf("\t<Contents>\n");
-    ptr = result;
-    for (i=0; i < len; i++) {
-      obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_batch_status,0); 
-      PyList_SetItem(resultobj, i, obj_batch);
-      if (SARA_DEBUG)  {
-        printf("\t\t- %s\n", ptr->name);
-      }
-      ptr = ptr->next;
-    }
-    
-    if (SARA_DEBUG) printf("\t</Contents>\n");
-  }
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_statserver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  struct attrl *arg2 = (struct attrl *) 0 ;
-  char *arg3 = (char *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int res3 ;
-  char *buf3 = 0 ;
-  int alloc3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  struct batch_status *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO:pbs_statserver",&obj0,&obj1,&obj2)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_statserver" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  {
-    PyObject      *py_obj;
-    struct attrl  *ptr, *prev;
-    char          s[255];
-    int           i=0, size=0;
-    
-    // printf("Python --> C\n");
-    
-    if (SARA_DEBUG) printf("Converteren python -> c (struct attrl *):\n");
-    
-    size = Get_List_Size(obj1);
-    if (SARA_DEBUG) printf("\tSize of attrl List: %d\n", size);
-    
-    if ( size == -1 ) {
-      PyErr_SetString(PyExc_TypeError, "not a list");
-      return NULL; 
-    }
-    
-    if (SARA_DEBUG) printf("\t<Contents>\n");
-    
-    arg2 = prev = NULL;
-    for ( i=0; i < size; i++ ) {
-      py_obj = PyList_GetItem(obj1, i);
-      if (SWIG_ConvertPtr(py_obj, (void **) &ptr, SWIGTYPE_p_attrl, 1)) {
-        sprintf(s,"list item %d has wrong type", i);
-        PyErr_SetString(PyExc_TypeError, s);
-        return NULL;
-        
-        // This will skipp the wrong entry
-        // continue;
-      }
-      
-      /* 
-           * Make first entry head of C linked list
-          */ 
-      if ( i == 0) {
-        arg2 = ptr;
-        ptr->next = prev;
-      }
-      else {
-        prev->next = ptr;
-        ptr->next = NULL;
-      }
-      if (SARA_DEBUG) printf("\t\t- %s\n", ptr->name);
-      
-      prev = ptr;
-      
-    } // end for
-    if (SARA_DEBUG) printf("\t</Contents>\n");
-  }
-  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_statserver" "', argument " "3"" of type '" "char *""'");
-  }
-  arg3 = (char *)(buf3);
-  result = (struct batch_status *)pbs_statserver(arg1,arg2,arg3);
-  {
-    PyObject              *obj_batch;
-    struct batch_status   *ptr;
-    int                   i=0, len=0;
-    
-    // printf("Ja we are in bussniss\n");
-    if (SARA_DEBUG) printf("Converteren c (struct batch_status *) -> python:\n");
-    
-    // Deterime length of list
-    //
-    ptr = result;
-    while (ptr != NULL) {
-      len++;
-      ptr = ptr->next;
-    }
-    resultobj = PyList_New(len);
-    
-    if (SARA_DEBUG) printf("\tSize of List: %d\n", len);
-    
-    // Make a list of batch_status pointers
-    //
-    if (SARA_DEBUG) printf("\t<Contents>\n");
-    ptr = result;
-    for (i=0; i < len; i++) {
-      obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_batch_status,0); 
-      PyList_SetItem(resultobj, i, obj_batch);
-      if (SARA_DEBUG)  {
-        printf("\t\t- %s\n", ptr->name);
-      }
-      ptr = ptr->next;
-    }
-    
-    if (SARA_DEBUG) printf("\t</Contents>\n");
-  }
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  return resultobj;
-fail:
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_statnode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  char *arg2 = (char *) 0 ;
-  struct attrl *arg3 = (struct attrl *) 0 ;
-  char *arg4 = (char *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  int res4 ;
-  char *buf4 = 0 ;
-  int alloc4 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  struct batch_status *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOO:pbs_statnode",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_statnode" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_statnode" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  {
-    PyObject      *py_obj;
-    struct attrl  *ptr, *prev;
-    char          s[255];
-    int           i=0, size=0;
-    
-    // printf("Python --> C\n");
-    
-    if (SARA_DEBUG) printf("Converteren python -> c (struct attrl *):\n");
-    
-    size = Get_List_Size(obj2);
-    if (SARA_DEBUG) printf("\tSize of attrl List: %d\n", size);
-    
-    if ( size == -1 ) {
-      PyErr_SetString(PyExc_TypeError, "not a list");
-      return NULL; 
-    }
-    
-    if (SARA_DEBUG) printf("\t<Contents>\n");
-    
-    arg3 = prev = NULL;
-    for ( i=0; i < size; i++ ) {
-      py_obj = PyList_GetItem(obj2, i);
-      if (SWIG_ConvertPtr(py_obj, (void **) &ptr, SWIGTYPE_p_attrl, 1)) {
-        sprintf(s,"list item %d has wrong type", i);
-        PyErr_SetString(PyExc_TypeError, s);
-        return NULL;
-        
-        // This will skipp the wrong entry
-        // continue;
-      }
-      
-      /* 
-           * Make first entry head of C linked list
-          */ 
-      if ( i == 0) {
-        arg3 = ptr;
-        ptr->next = prev;
-      }
-      else {
-        prev->next = ptr;
-        ptr->next = NULL;
-      }
-      if (SARA_DEBUG) printf("\t\t- %s\n", ptr->name);
-      
-      prev = ptr;
-      
-    } // end for
-    if (SARA_DEBUG) printf("\t</Contents>\n");
-  }
-  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
-  if (!SWIG_IsOK(res4)) {
-    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_statnode" "', argument " "4"" of type '" "char *""'");
-  }
-  arg4 = (char *)(buf4);
-  result = (struct batch_status *)pbs_statnode(arg1,arg2,arg3,arg4);
-  {
-    PyObject              *obj_batch;
-    struct batch_status   *ptr;
-    int                   i=0, len=0;
-    
-    // printf("Ja we are in bussniss\n");
-    if (SARA_DEBUG) printf("Converteren c (struct batch_status *) -> python:\n");
-    
-    // Deterime length of list
-    //
-    ptr = result;
-    while (ptr != NULL) {
-      len++;
-      ptr = ptr->next;
-    }
-    resultobj = PyList_New(len);
-    
-    if (SARA_DEBUG) printf("\tSize of List: %d\n", len);
-    
-    // Make a list of batch_status pointers
-    //
-    if (SARA_DEBUG) printf("\t<Contents>\n");
-    ptr = result;
-    for (i=0; i < len; i++) {
-      obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_batch_status,0); 
-      PyList_SetItem(resultobj, i, obj_batch);
-      if (SARA_DEBUG)  {
-        printf("\t\t- %s\n", ptr->name);
-      }
-      ptr = ptr->next;
-    }
-    
-    if (SARA_DEBUG) printf("\t</Contents>\n");
-  }
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_submit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  struct attropl *arg2 = (struct attropl *) 0 ;
-  char *arg3 = (char *) 0 ;
-  char *arg4 = (char *) 0 ;
-  char *arg5 = (char *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int res3 ;
-  char *buf3 = 0 ;
-  int alloc3 = 0 ;
-  int res4 ;
-  char *buf4 = 0 ;
-  int alloc4 = 0 ;
-  int res5 ;
-  char *buf5 = 0 ;
-  int alloc5 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  PyObject * obj4 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOOO:pbs_submit",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_submit" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  {
-    PyObject          *py_obj;
-    struct attropl    *ptr, *prev;
-    char              s[255];
-    int               i=0, size=0;
-    
-    // printf("Python --> C\n");
-    
-    if (SARA_DEBUG) printf("Converteren python -> c (struct attropl *):\n");
-    
-    size = Get_List_Size(obj1);
-    
-    if (SARA_DEBUG) printf("\tSize attropl List: %d\n", size);
-    
-    if ( size == -1 ) {
-      PyErr_SetString(PyExc_TypeError, "not a list");
-      return NULL; 
-    }
-    //printf("Size = %d\n", size);
-    
-    if (SARA_DEBUG) printf("\t<Contents>\n");
-    
-    arg2 = prev = NULL;
-    for ( i=0; i < size; i++ ) {
-      py_obj = PyList_GetItem(obj1, i);
-      if (SWIG_ConvertPtr(py_obj, (void **) &ptr, SWIGTYPE_p_attropl, 1)) {
-        sprintf(s,"list item %d has wrong type", i);
-        PyErr_SetString(PyExc_TypeError, s);
-        return NULL;
-        
-        // This will skipp the wrong entry
-        // continue;
-      }
-      
-      /* 
-           * Make first entry head of C linked list
-          */ 
-      if ( i == 0) {
-        arg2 = ptr;
-        ptr->next = prev;
-      }
-      else {
-        prev->next = ptr;
-        ptr->next = NULL;
-      }
-      prev = ptr;
-      
-    } // end for
-    if (SARA_DEBUG) printf("\t</Contents>\n");
-  }
-  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_submit" "', argument " "3"" of type '" "char *""'");
-  }
-  arg3 = (char *)(buf3);
-  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
-  if (!SWIG_IsOK(res4)) {
-    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_submit" "', argument " "4"" of type '" "char *""'");
-  }
-  arg4 = (char *)(buf4);
-  res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5);
-  if (!SWIG_IsOK(res5)) {
-    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pbs_submit" "', argument " "5"" of type '" "char *""'");
-  }
-  arg5 = (char *)(buf5);
-  result = (char *)pbs_submit(arg1,arg2,arg3,arg4,arg5);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
-  return resultobj;
-fail:
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_terminate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  int arg2 ;
-  char *arg3 = (char *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  int res3 ;
-  char *buf3 = 0 ;
-  int alloc3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO:pbs_terminate",&obj0,&obj1,&obj2)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_terminate" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pbs_terminate" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_terminate" "', argument " "3"" of type '" "char *""'");
-  }
-  arg3 = (char *)(buf3);
-  result = (int)pbs_terminate(arg1,arg2,arg3);
-  resultobj = SWIG_From_int((int)(result));
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  return resultobj;
-fail:
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_totpool(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  int arg2 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:totpool",&obj0,&obj1)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "totpool" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "totpool" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  result = (int)totpool(arg1,arg2);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_usepool(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  int arg2 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:usepool",&obj0,&obj1)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "usepool" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "usepool" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  result = (int)usepool(arg1,arg2);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_fbserver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":pbs_fbserver")) SWIG_fail;
-  result = (char *)pbs_fbserver();
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_get_server_list(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":pbs_get_server_list")) SWIG_fail;
-  result = (char *)pbs_get_server_list();
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_sigjobasync(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  char *arg4 = (char *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  int res3 ;
-  char *buf3 = 0 ;
-  int alloc3 = 0 ;
-  int res4 ;
-  char *buf4 = 0 ;
-  int alloc4 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOO:pbs_sigjobasync",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_sigjobasync" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_sigjobasync" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_sigjobasync" "', argument " "3"" of type '" "char *""'");
-  }
-  arg3 = (char *)(buf3);
-  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
-  if (!SWIG_IsOK(res4)) {
-    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_sigjobasync" "', argument " "4"" of type '" "char *""'");
-  }
-  arg4 = (char *)(buf4);
-  result = (int)pbs_sigjobasync(arg1,arg2,arg3,arg4);
-  resultobj = SWIG_From_int((int)(result));
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_alterjob_async(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  char *arg2 = (char *) 0 ;
-  struct attrl *arg3 = (struct attrl *) 0 ;
-  char *arg4 = (char *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  int res4 ;
-  char *buf4 = 0 ;
-  int alloc4 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOO:pbs_alterjob_async",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_alterjob_async" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_alterjob_async" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  {
-    PyObject      *py_obj;
-    struct attrl  *ptr, *prev;
-    char          s[255];
-    int           i=0, size=0;
-    
-    // printf("Python --> C\n");
-    
-    if (SARA_DEBUG) printf("Converteren python -> c (struct attrl *):\n");
-    
-    size = Get_List_Size(obj2);
-    if (SARA_DEBUG) printf("\tSize of attrl List: %d\n", size);
-    
-    if ( size == -1 ) {
-      PyErr_SetString(PyExc_TypeError, "not a list");
-      return NULL; 
-    }
-    
-    if (SARA_DEBUG) printf("\t<Contents>\n");
-    
-    arg3 = prev = NULL;
-    for ( i=0; i < size; i++ ) {
-      py_obj = PyList_GetItem(obj2, i);
-      if (SWIG_ConvertPtr(py_obj, (void **) &ptr, SWIGTYPE_p_attrl, 1)) {
-        sprintf(s,"list item %d has wrong type", i);
-        PyErr_SetString(PyExc_TypeError, s);
-        return NULL;
-        
-        // This will skipp the wrong entry
-        // continue;
-      }
-      
-      /* 
-           * Make first entry head of C linked list
-          */ 
-      if ( i == 0) {
-        arg3 = ptr;
-        ptr->next = prev;
-      }
-      else {
-        prev->next = ptr;
-        ptr->next = NULL;
-      }
-      if (SARA_DEBUG) printf("\t\t- %s\n", ptr->name);
-      
-      prev = ptr;
-      
-    } // end for
-    if (SARA_DEBUG) printf("\t</Contents>\n");
-  }
-  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
-  if (!SWIG_IsOK(res4)) {
-    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pbs_alterjob_async" "', argument " "4"" of type '" "char *""'");
-  }
-  arg4 = (char *)(buf4);
-  result = (int)pbs_alterjob_async(arg1,arg2,arg3,arg4);
-  resultobj = SWIG_From_int((int)(result));
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pbs_checkpointjob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  int res3 ;
-  char *buf3 = 0 ;
-  int alloc3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO:pbs_checkpointjob",&obj0,&obj1,&obj2)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pbs_checkpointjob" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pbs_checkpointjob" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pbs_checkpointjob" "', argument " "3"" of type '" "char *""'");
-  }
-  arg3 = (char *)(buf3);
-  result = (int)pbs_checkpointjob(arg1,arg2,arg3);
-  resultobj = SWIG_From_int((int)(result));
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_openrm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  char *arg1 = (char *) 0 ;
-  unsigned int arg2 ;
-  int res1 ;
-  char *buf1 = 0 ;
-  int alloc1 = 0 ;
-  unsigned int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:openrm",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "openrm" "', argument " "1"" of type '" "char *""'");
-  }
-  arg1 = (char *)(buf1);
-  ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "openrm" "', argument " "2"" of type '" "unsigned int""'");
-  } 
-  arg2 = (unsigned int)(val2);
-  result = (int)openrm(arg1,arg2);
-  resultobj = SWIG_From_int((int)(result));
-  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-  return resultobj;
-fail:
-  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_closerm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:closerm",&obj0)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "closerm" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  result = (int)closerm(arg1);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_downrm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:downrm",&obj0)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "downrm" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  result = (int)downrm(arg1);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_configrm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  char *arg2 = (char *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:configrm",&obj0,&obj1)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "configrm" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "configrm" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  result = (int)configrm(arg1,arg2);
-  resultobj = SWIG_From_int((int)(result));
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_addreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  char *arg2 = (char *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:addreq",&obj0,&obj1)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "addreq" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "addreq" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  result = (int)addreq(arg1,arg2);
-  resultobj = SWIG_From_int((int)(result));
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_allreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  char *arg1 = (char *) 0 ;
-  int res1 ;
-  char *buf1 = 0 ;
-  int alloc1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:allreq",&obj0)) SWIG_fail;
-  res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "allreq" "', argument " "1"" of type '" "char *""'");
-  }
-  arg1 = (char *)(buf1);
-  result = (int)allreq(arg1);
-  resultobj = SWIG_From_int((int)(result));
-  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-  return resultobj;
-fail:
-  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_getreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:getreq",&obj0)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "getreq" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  result = (char *)getreq(arg1);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_flushreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)":flushreq")) SWIG_fail;
-  result = (int)flushreq();
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_activereq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)":activereq")) SWIG_fail;
-  result = (int)activereq();
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_fullresp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:fullresp",&obj0)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "fullresp" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  fullresp(arg1);
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN int Swig_var_log_event_mask_set(PyObject *_val) {
-  {
-    void *argp = 0;
-    int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_long,  0 );  
-    if (!SWIG_IsOK(res)) {
-      SWIG_exception_fail(SWIG_ArgError(res), "in variable '""log_event_mask""' of type '""long *""'");
-    }
-    log_event_mask = (long *)(argp);
-  }
-  return 0;
-fail:
-  return 1;
-}
-
-
-SWIGINTERN PyObject *Swig_var_log_event_mask_get(void) {
-  PyObject *pyobj = 0;
-  
-  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(log_event_mask), SWIGTYPE_p_long,  0 );
-  return pyobj;
-}
-
-
-SWIGINTERN int Swig_var_chk_file_sec_stderr_set(PyObject *_val) {
-  {
-    int val;
-    int res = SWIG_AsVal_int(_val, &val);
-    if (!SWIG_IsOK(res)) {
-      SWIG_exception_fail(SWIG_ArgError(res), "in variable '""chk_file_sec_stderr""' of type '""int""'");
-    }
-    chk_file_sec_stderr = (int)(val);
-  }
-  return 0;
-fail:
-  return 1;
-}
-
-
-SWIGINTERN PyObject *Swig_var_chk_file_sec_stderr_get(void) {
-  PyObject *pyobj = 0;
-  
-  pyobj = SWIG_From_int((int)(chk_file_sec_stderr));
-  return pyobj;
-}
-
-
-SWIGINTERN PyObject *_wrap_log_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:log_close",&obj0)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "log_close" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  log_close(arg1);
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_log_err(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  int res3 ;
-  char *buf3 = 0 ;
-  int alloc3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO:log_err",&obj0,&obj1,&obj2)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "log_err" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "log_err" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "log_err" "', argument " "3"" of type '" "char *""'");
-  }
-  arg3 = (char *)(buf3);
-  log_err(arg1,arg2,arg3);
-  resultobj = SWIG_Py_Void();
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_log_event(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  int arg2 ;
-  char *arg3 = (char *) 0 ;
-  char *arg4 = (char *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  int res3 ;
-  char *buf3 = 0 ;
-  int alloc3 = 0 ;
-  int res4 ;
-  char *buf4 = 0 ;
-  int alloc4 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOO:log_event",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "log_event" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "log_event" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "log_event" "', argument " "3"" of type '" "char *""'");
-  }
-  arg3 = (char *)(buf3);
-  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
-  if (!SWIG_IsOK(res4)) {
-    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "log_event" "', argument " "4"" of type '" "char *""'");
-  }
-  arg4 = (char *)(buf4);
-  log_event(arg1,arg2,arg3,arg4);
-  resultobj = SWIG_Py_Void();
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  return resultobj;
-fail:
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_log_open(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  char *arg1 = (char *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int res1 ;
-  char *buf1 = 0 ;
-  int alloc1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:log_open",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "log_open" "', argument " "1"" of type '" "char *""'");
-  }
-  arg1 = (char *)(buf1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "log_open" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  result = (int)log_open(arg1,arg2);
-  resultobj = SWIG_From_int((int)(result));
-  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return resultobj;
-fail:
-  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_log_record(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  int arg2 ;
-  char *arg3 = (char *) 0 ;
-  char *arg4 = (char *) 0 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  int res3 ;
-  char *buf3 = 0 ;
-  int alloc3 = 0 ;
-  int res4 ;
-  char *buf4 = 0 ;
-  int alloc4 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOO:log_record",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "log_record" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "log_record" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "log_record" "', argument " "3"" of type '" "char *""'");
-  }
-  arg3 = (char *)(buf3);
-  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
-  if (!SWIG_IsOK(res4)) {
-    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "log_record" "', argument " "4"" of type '" "char *""'");
-  }
-  arg4 = (char *)(buf4);
-  log_record(arg1,arg2,arg3,arg4);
-  resultobj = SWIG_Py_Void();
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  return resultobj;
-fail:
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_log_roll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:log_roll",&obj0)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "log_roll" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  log_roll(arg1);
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_log_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  long result;
-  
-  if (!PyArg_ParseTuple(args,(char *)":log_size")) SWIG_fail;
-  result = (long)log_size();
-  resultobj = SWIG_From_long((long)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN int Swig_var_log_buffer_set(PyObject *_val) {
-  {
-    int res = SWIG_AsCharArray(_val, log_buffer, 16384);
-    if (!SWIG_IsOK(res)) {
-      SWIG_exception_fail(SWIG_ArgError(res), "in variable '""log_buffer""' of type '""char [16384]""'");
-    }
-  }
-  return 0;
-fail:
-  return 1;
-}
-
-
-SWIGINTERN PyObject *Swig_var_log_buffer_get(void) {
-  PyObject *pyobj = 0;
-  
-  size_t size = 16384;
-  
-  while (size && (log_buffer[size - 1] == '\0')) --size;
-  
-  pyobj = SWIG_FromCharPtrAndSize(log_buffer, size);
-  return pyobj;
-}
-
-
-SWIGINTERN PyObject *_wrap_chk_file_sec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  char *arg1 = (char *) 0 ;
-  int arg2 ;
-  int arg3 ;
-  int arg4 ;
-  int arg5 ;
-  char *arg6 = (char *) 0 ;
-  int res1 ;
-  char *buf1 = 0 ;
-  int alloc1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  int val3 ;
-  int ecode3 = 0 ;
-  int val4 ;
-  int ecode4 = 0 ;
-  int val5 ;
-  int ecode5 = 0 ;
-  int res6 ;
-  char *buf6 = 0 ;
-  int alloc6 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  PyObject * obj4 = 0 ;
-  PyObject * obj5 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOOOO:chk_file_sec",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
-  res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "chk_file_sec" "', argument " "1"" of type '" "char *""'");
-  }
-  arg1 = (char *)(buf1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "chk_file_sec" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  ecode3 = SWIG_AsVal_int(obj2, &val3);
-  if (!SWIG_IsOK(ecode3)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "chk_file_sec" "', argument " "3"" of type '" "int""'");
-  } 
-  arg3 = (int)(val3);
-  ecode4 = SWIG_AsVal_int(obj3, &val4);
-  if (!SWIG_IsOK(ecode4)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "chk_file_sec" "', argument " "4"" of type '" "int""'");
-  } 
-  arg4 = (int)(val4);
-  ecode5 = SWIG_AsVal_int(obj4, &val5);
-  if (!SWIG_IsOK(ecode5)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "chk_file_sec" "', argument " "5"" of type '" "int""'");
-  } 
-  arg5 = (int)(val5);
-  res6 = SWIG_AsCharPtrAndSize(obj5, &buf6, NULL, &alloc6);
-  if (!SWIG_IsOK(res6)) {
-    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "chk_file_sec" "', argument " "6"" of type '" "char *""'");
-  }
-  arg6 = (char *)(buf6);
-  result = (int)chk_file_sec(arg1,arg2,arg3,arg4,arg5,arg6);
-  resultobj = SWIG_From_int((int)(result));
-  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-  if (alloc6 == SWIG_NEWOBJ) free((char*)buf6);
-  return resultobj;
-fail:
-  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-  if (alloc6 == SWIG_NEWOBJ) free((char*)buf6);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_setup_env(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  char *arg1 = (char *) 0 ;
-  int res1 ;
-  char *buf1 = 0 ;
-  int alloc1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:setup_env",&obj0)) SWIG_fail;
-  res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "setup_env" "', argument " "1"" of type '" "char *""'");
-  }
-  arg1 = (char *)(buf1);
-  result = (int)setup_env(arg1);
-  resultobj = SWIG_From_int((int)(result));
-  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-  return resultobj;
-fail:
-  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_log_ext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  int arg4 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  int res3 ;
-  char *buf3 = 0 ;
-  int alloc3 = 0 ;
-  int val4 ;
-  int ecode4 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOO:log_ext",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "log_ext" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "log_ext" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "log_ext" "', argument " "3"" of type '" "char *""'");
-  }
-  arg3 = (char *)(buf3);
-  ecode4 = SWIG_AsVal_int(obj3, &val4);
-  if (!SWIG_IsOK(ecode4)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "log_ext" "', argument " "4"" of type '" "int""'");
-  } 
-  arg4 = (int)(val4);
-  log_ext(arg1,arg2,arg3,arg4);
-  resultobj = SWIG_Py_Void();
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_log_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  char *arg1 = (char *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int res1 ;
-  char *buf1 = 0 ;
-  int alloc1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:log_init",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "log_init" "', argument " "1"" of type '" "char *""'");
-  }
-  arg1 = (char *)(buf1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "log_init" "', argument " "2"" of type '" "char *""'");
-  }
-  arg2 = (char *)(buf2);
-  result = (int)log_init(arg1,arg2);
-  resultobj = SWIG_From_int((int)(result));
-  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return resultobj;
-fail:
-  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_log_remove_old(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  char *arg1 = (char *) 0 ;
-  unsigned long arg2 ;
-  int res1 ;
-  char *buf1 = 0 ;
-  int alloc1 = 0 ;
-  unsigned long val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:log_remove_old",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "log_remove_old" "', argument " "1"" of type '" "char *""'");
-  }
-  arg1 = (char *)(buf1);
-  ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "log_remove_old" "', argument " "2"" of type '" "unsigned long""'");
-  } 
-  arg2 = (unsigned long)(val2);
-  result = (int)log_remove_old(arg1,arg2);
-  resultobj = SWIG_From_int((int)(result));
-  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-  return resultobj;
-fail:
-  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-  return NULL;
-}
-
-
-SWIGINTERN int Swig_var_msg_daemonname_set(PyObject *_val) {
-  {
-    char *cptr = 0; size_t csize = 0; int alloc = SWIG_NEWOBJ;
-    int res = SWIG_AsCharPtrAndSize(_val, &cptr, &csize, &alloc);
-    if (!SWIG_IsOK(res)) {
-      SWIG_exception_fail(SWIG_ArgError(res), "in variable '""msg_daemonname""' of type '""char *""'");
-    }
-    if (msg_daemonname) free((char*)msg_daemonname);
-    if (alloc == SWIG_NEWOBJ) {
-      msg_daemonname = cptr;
-    } else {
-      msg_daemonname = csize ? (char *)(char *)memcpy((char *)malloc((csize)*sizeof(char)), cptr, sizeof(char)*(csize)) : 0;
-    }
-  }
-  return 0;
-fail:
-  return 1;
-}
-
-
-SWIGINTERN PyObject *Swig_var_msg_daemonname_get(void) {
-  PyObject *pyobj = 0;
-  
-  pyobj = SWIG_FromCharPtr(msg_daemonname);
-  return pyobj;
-}
-
-
-static PyMethodDef SwigMethods[] = {
-	 { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL},
-	 { (char *)"new_attrl", _wrap_new_attrl, METH_VARARGS, NULL},
-	 { (char *)"new_attropl", _wrap_new_attropl, METH_VARARGS, NULL},
-	 { (char *)"new_batch_status", _wrap_new_batch_status, METH_VARARGS, NULL},
-	 { (char *)"get_error", _wrap_get_error, METH_VARARGS, NULL},
-	 { (char *)"attrl_next_set", _wrap_attrl_next_set, METH_VARARGS, NULL},
-	 { (char *)"attrl_next_get", _wrap_attrl_next_get, METH_VARARGS, NULL},
-	 { (char *)"attrl_name_set", _wrap_attrl_name_set, METH_VARARGS, NULL},
-	 { (char *)"attrl_name_get", _wrap_attrl_name_get, METH_VARARGS, NULL},
-	 { (char *)"attrl_resource_set", _wrap_attrl_resource_set, METH_VARARGS, NULL},
-	 { (char *)"attrl_resource_get", _wrap_attrl_resource_get, METH_VARARGS, NULL},
-	 { (char *)"attrl_value_set", _wrap_attrl_value_set, METH_VARARGS, NULL},
-	 { (char *)"attrl_value_get", _wrap_attrl_value_get, METH_VARARGS, NULL},
-	 { (char *)"attrl_op_set", _wrap_attrl_op_set, METH_VARARGS, NULL},
-	 { (char *)"attrl_op_get", _wrap_attrl_op_get, METH_VARARGS, NULL},
-	 { (char *)"attrl___str__", _wrap_attrl___str__, METH_VARARGS, NULL},
-	 { (char *)"delete_attrl", _wrap_delete_attrl, METH_VARARGS, NULL},
-	 { (char *)"attrl_swigregister", attrl_swigregister, METH_VARARGS, NULL},
-	 { (char *)"attropl_next_set", _wrap_attropl_next_set, METH_VARARGS, NULL},
-	 { (char *)"attropl_next_get", _wrap_attropl_next_get, METH_VARARGS, NULL},
-	 { (char *)"attropl_name_set", _wrap_attropl_name_set, METH_VARARGS, NULL},
-	 { (char *)"attropl_name_get", _wrap_attropl_name_get, METH_VARARGS, NULL},
-	 { (char *)"attropl_resource_set", _wrap_attropl_resource_set, METH_VARARGS, NULL},
-	 { (char *)"attropl_resource_get", _wrap_attropl_resource_get, METH_VARARGS, NULL},
-	 { (char *)"attropl_value_set", _wrap_attropl_value_set, METH_VARARGS, NULL},
-	 { (char *)"attropl_value_get", _wrap_attropl_value_get, METH_VARARGS, NULL},
-	 { (char *)"attropl_op_set", _wrap_attropl_op_set, METH_VARARGS, NULL},
-	 { (char *)"attropl_op_get", _wrap_attropl_op_get, METH_VARARGS, NULL},
-	 { (char *)"attropl___str__", _wrap_attropl___str__, METH_VARARGS, NULL},
-	 { (char *)"delete_attropl", _wrap_delete_attropl, METH_VARARGS, NULL},
-	 { (char *)"attropl_swigregister", attropl_swigregister, METH_VARARGS, NULL},
-	 { (char *)"batch_status_next_set", _wrap_batch_status_next_set, METH_VARARGS, NULL},
-	 { (char *)"batch_status_next_get", _wrap_batch_status_next_get, METH_VARARGS, NULL},
-	 { (char *)"batch_status_name_set", _wrap_batch_status_name_set, METH_VARARGS, NULL},
-	 { (char *)"batch_status_name_get", _wrap_batch_status_name_get, METH_VARARGS, NULL},
-	 { (char *)"batch_status_attribs_set", _wrap_batch_status_attribs_set, METH_VARARGS, NULL},
-	 { (char *)"batch_status_attribs_get", _wrap_batch_status_attribs_get, METH_VARARGS, NULL},
-	 { (char *)"batch_status_text_set", _wrap_batch_status_text_set, METH_VARARGS, NULL},
-	 { (char *)"batch_status_text_get", _wrap_batch_status_text_get, METH_VARARGS, NULL},
-	 { (char *)"batch_status_swigregister", batch_status_swigregister, METH_VARARGS, NULL},
-	 { (char *)"avail", _wrap_avail, METH_VARARGS, NULL},
-	 { (char *)"pbs_asyrunjob", _wrap_pbs_asyrunjob, METH_VARARGS, NULL},
-	 { (char *)"pbs_alterjob", _wrap_pbs_alterjob, METH_VARARGS, NULL},
-	 { (char *)"pbs_connect", _wrap_pbs_connect, METH_VARARGS, NULL},
-	 { (char *)"pbs_query_max_connections", _wrap_pbs_query_max_connections, METH_VARARGS, NULL},
-	 { (char *)"pbs_default", _wrap_pbs_default, METH_VARARGS, NULL},
-	 { (char *)"pbs_deljob", _wrap_pbs_deljob, METH_VARARGS, NULL},
-	 { (char *)"pbs_disconnect", _wrap_pbs_disconnect, METH_VARARGS, NULL},
-	 { (char *)"pbs_geterrmsg", _wrap_pbs_geterrmsg, METH_VARARGS, NULL},
-	 { (char *)"pbs_holdjob", _wrap_pbs_holdjob, METH_VARARGS, NULL},
-	 { (char *)"pbs_locjob", _wrap_pbs_locjob, METH_VARARGS, NULL},
-	 { (char *)"pbs_manager", _wrap_pbs_manager, METH_VARARGS, NULL},
-	 { (char *)"pbs_movejob", _wrap_pbs_movejob, METH_VARARGS, NULL},
-	 { (char *)"pbs_msgjob", _wrap_pbs_msgjob, METH_VARARGS, NULL},
-	 { (char *)"pbs_orderjob", _wrap_pbs_orderjob, METH_VARARGS, NULL},
-	 { (char *)"pbs_rescquery", _wrap_pbs_rescquery, METH_VARARGS, NULL},
-	 { (char *)"pbs_rescreserve", _wrap_pbs_rescreserve, METH_VARARGS, NULL},
-	 { (char *)"pbs_rescrelease", _wrap_pbs_rescrelease, METH_VARARGS, NULL},
-	 { (char *)"pbs_rerunjob", _wrap_pbs_rerunjob, METH_VARARGS, NULL},
-	 { (char *)"pbs_rlsjob", _wrap_pbs_rlsjob, METH_VARARGS, NULL},
-	 { (char *)"pbs_runjob", _wrap_pbs_runjob, METH_VARARGS, NULL},
-	 { (char *)"pbs_selectjob", _wrap_pbs_selectjob, METH_VARARGS, NULL},
-	 { (char *)"pbs_sigjob", _wrap_pbs_sigjob, METH_VARARGS, NULL},
-	 { (char *)"pbs_statfree", _wrap_pbs_statfree, METH_VARARGS, NULL},
-	 { (char *)"pbs_statjob", _wrap_pbs_statjob, METH_VARARGS, NULL},
-	 { (char *)"pbs_selstat", _wrap_pbs_selstat, METH_VARARGS, NULL},
-	 { (char *)"pbs_statque", _wrap_pbs_statque, METH_VARARGS, NULL},
-	 { (char *)"pbs_statserver", _wrap_pbs_statserver, METH_VARARGS, NULL},
-	 { (char *)"pbs_statnode", _wrap_pbs_statnode, METH_VARARGS, NULL},
-	 { (char *)"pbs_submit", _wrap_pbs_submit, METH_VARARGS, NULL},
-	 { (char *)"pbs_terminate", _wrap_pbs_terminate, METH_VARARGS, NULL},
-	 { (char *)"totpool", _wrap_totpool, METH_VARARGS, NULL},
-	 { (char *)"usepool", _wrap_usepool, METH_VARARGS, NULL},
-	 { (char *)"pbs_fbserver", _wrap_pbs_fbserver, METH_VARARGS, NULL},
-	 { (char *)"pbs_get_server_list", _wrap_pbs_get_server_list, METH_VARARGS, NULL},
-	 { (char *)"pbs_sigjobasync", _wrap_pbs_sigjobasync, METH_VARARGS, NULL},
-	 { (char *)"pbs_alterjob_async", _wrap_pbs_alterjob_async, METH_VARARGS, NULL},
-	 { (char *)"pbs_checkpointjob", _wrap_pbs_checkpointjob, METH_VARARGS, NULL},
-	 { (char *)"openrm", _wrap_openrm, METH_VARARGS, NULL},
-	 { (char *)"closerm", _wrap_closerm, METH_VARARGS, NULL},
-	 { (char *)"downrm", _wrap_downrm, METH_VARARGS, NULL},
-	 { (char *)"configrm", _wrap_configrm, METH_VARARGS, NULL},
-	 { (char *)"addreq", _wrap_addreq, METH_VARARGS, NULL},
-	 { (char *)"allreq", _wrap_allreq, METH_VARARGS, NULL},
-	 { (char *)"getreq", _wrap_getreq, METH_VARARGS, NULL},
-	 { (char *)"flushreq", _wrap_flushreq, METH_VARARGS, NULL},
-	 { (char *)"activereq", _wrap_activereq, METH_VARARGS, NULL},
-	 { (char *)"fullresp", _wrap_fullresp, METH_VARARGS, NULL},
-	 { (char *)"log_close", _wrap_log_close, METH_VARARGS, NULL},
-	 { (char *)"log_err", _wrap_log_err, METH_VARARGS, NULL},
-	 { (char *)"log_event", _wrap_log_event, METH_VARARGS, NULL},
-	 { (char *)"log_open", _wrap_log_open, METH_VARARGS, NULL},
-	 { (char *)"log_record", _wrap_log_record, METH_VARARGS, NULL},
-	 { (char *)"log_roll", _wrap_log_roll, METH_VARARGS, NULL},
-	 { (char *)"log_size", _wrap_log_size, METH_VARARGS, NULL},
-	 { (char *)"chk_file_sec", _wrap_chk_file_sec, METH_VARARGS, NULL},
-	 { (char *)"setup_env", _wrap_setup_env, METH_VARARGS, NULL},
-	 { (char *)"log_ext", _wrap_log_ext, METH_VARARGS, NULL},
-	 { (char *)"log_init", _wrap_log_init, METH_VARARGS, NULL},
-	 { (char *)"log_remove_old", _wrap_log_remove_old, METH_VARARGS, NULL},
-	 { NULL, NULL, 0, NULL }
-};
-
-
-/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
-
-static swig_type_info _swigt__p_attrl = {"_p_attrl", "struct attrl *|attrl *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_attropl = {"_p_attropl", "struct attropl *|attropl *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_batch_status = {"_p_batch_status", "struct batch_status *|batch_status *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_int = {"_p_int", "int *|resource_t *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0};
-
-static swig_type_info *swig_type_initial[] = {
-  &_swigt__p_attrl,
-  &_swigt__p_attropl,
-  &_swigt__p_batch_status,
-  &_swigt__p_char,
-  &_swigt__p_int,
-  &_swigt__p_long,
-  &_swigt__p_p_char,
-};
-
-static swig_cast_info _swigc__p_attrl[] = {  {&_swigt__p_attrl, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_attropl[] = {  {&_swigt__p_attropl, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_batch_status[] = {  {&_swigt__p_batch_status, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_char[] = {  {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_int[] = {  {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_long[] = {  {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_p_char[] = {  {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}};
-
-static swig_cast_info *swig_cast_initial[] = {
-  _swigc__p_attrl,
-  _swigc__p_attropl,
-  _swigc__p_batch_status,
-  _swigc__p_char,
-  _swigc__p_int,
-  _swigc__p_long,
-  _swigc__p_p_char,
-};
-
-
-/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
-
-static swig_const_info swig_const_table[] = {
-{0, 0, 0, 0.0, 0, 0}};
-
-#ifdef __cplusplus
-}
-#endif
-/* -----------------------------------------------------------------------------
- * Type initialization:
- * This problem is tough by the requirement that no dynamic 
- * memory is used. Also, since swig_type_info structures store pointers to 
- * swig_cast_info structures and swig_cast_info structures store pointers back
- * to swig_type_info structures, we need some lookup code at initialization. 
- * The idea is that swig generates all the structures that are needed. 
- * The runtime then collects these partially filled structures. 
- * The SWIG_InitializeModule function takes these initial arrays out of 
- * swig_module, and does all the lookup, filling in the swig_module.types
- * array with the correct data and linking the correct swig_cast_info
- * structures together.
- *
- * The generated swig_type_info structures are assigned staticly to an initial 
- * array. We just loop through that array, and handle each type individually.
- * First we lookup if this type has been already loaded, and if so, use the
- * loaded structure instead of the generated one. Then we have to fill in the
- * cast linked list. The cast data is initially stored in something like a
- * two-dimensional array. Each row corresponds to a type (there are the same
- * number of rows as there are in the swig_type_initial array). Each entry in
- * a column is one of the swig_cast_info structures for that type.
- * The cast_initial array is actually an array of arrays, because each row has
- * a variable number of columns. So to actually build the cast linked list,
- * we find the array of casts associated with the type, and loop through it 
- * adding the casts to the list. The one last trick we need to do is making
- * sure the type pointer in the swig_cast_info struct is correct.
- *
- * First off, we lookup the cast->type name to see if it is already loaded. 
- * There are three cases to handle:
- *  1) If the cast->type has already been loaded AND the type we are adding
- *     casting info to has not been loaded (it is in this module), THEN we
- *     replace the cast->type pointer with the type pointer that has already
- *     been loaded.
- *  2) If BOTH types (the one we are adding casting info to, and the 
- *     cast->type) are loaded, THEN the cast info has already been loaded by
- *     the previous module so we just ignore it.
- *  3) Finally, if cast->type has not already been loaded, then we add that
- *     swig_cast_info to the linked list (because the cast->type) pointer will
- *     be correct.
- * ----------------------------------------------------------------------------- */
-
-#ifdef __cplusplus
-extern "C" {
-#if 0
-} /* c-mode */
-#endif
-#endif
-
-#if 0
-#define SWIGRUNTIME_DEBUG
-#endif
-
-
-SWIGRUNTIME void
-SWIG_InitializeModule(void *clientdata) {
-  size_t i;
-  swig_module_info *module_head, *iter;
-  int found, init;
-  
-  clientdata = clientdata;
-  
-  /* check to see if the circular list has been setup, if not, set it up */
-  if (swig_module.next==0) {
-    /* Initialize the swig_module */
-    swig_module.type_initial = swig_type_initial;
-    swig_module.cast_initial = swig_cast_initial;
-    swig_module.next = &swig_module;
-    init = 1;
-  } else {
-    init = 0;
-  }
-  
-  /* Try and load any already created modules */
-  module_head = SWIG_GetModule(clientdata);
-  if (!module_head) {
-    /* This is the first module loaded for this interpreter */
-    /* so set the swig module into the interpreter */
-    SWIG_SetModule(clientdata, &swig_module);
-    module_head = &swig_module;
-  } else {
-    /* the interpreter has loaded a SWIG module, but has it loaded this one? */
-    found=0;
-    iter=module_head;
-    do {
-      if (iter==&swig_module) {
-        found=1;
-        break;
-      }
-      iter=iter->next;
-    } while (iter!= module_head);
-    
-    /* if the is found in the list, then all is done and we may leave */
-    if (found) return;
-    /* otherwise we must add out module into the list */
-    swig_module.next = module_head->next;
-    module_head->next = &swig_module;
-  }
-  
-  /* When multiple interpeters are used, a module could have already been initialized in
-       a different interpreter, but not yet have a pointer in this interpreter.
-       In this case, we do not want to continue adding types... everything should be
-       set up already */
-  if (init == 0) return;
-  
-  /* Now work on filling in swig_module.types */
-#ifdef SWIGRUNTIME_DEBUG
-  printf("SWIG_InitializeModule: size %d\n", swig_module.size);
-#endif
-  for (i = 0; i < swig_module.size; ++i) {
-    swig_type_info *type = 0;
-    swig_type_info *ret;
-    swig_cast_info *cast;
-    
-#ifdef SWIGRUNTIME_DEBUG
-    printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
-#endif
-    
-    /* if there is another module already loaded */
-    if (swig_module.next != &swig_module) {
-      type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
-    }
-    if (type) {
-      /* Overwrite clientdata field */
-#ifdef SWIGRUNTIME_DEBUG
-      printf("SWIG_InitializeModule: found type %s\n", type->name);
-#endif
-      if (swig_module.type_initial[i]->clientdata) {
-        type->clientdata = swig_module.type_initial[i]->clientdata;
-#ifdef SWIGRUNTIME_DEBUG
-        printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
-#endif
-      }
-    } else {
-      type = swig_module.type_initial[i];
-    }
-    
-    /* Insert casting types */
-    cast = swig_module.cast_initial[i];
-    while (cast->type) {
-      /* Don't need to add information already in the list */
-      ret = 0;
-#ifdef SWIGRUNTIME_DEBUG
-      printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
-#endif
-      if (swig_module.next != &swig_module) {
-        ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
-#ifdef SWIGRUNTIME_DEBUG
-        if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
-#endif
-      }
-      if (ret) {
-        if (type == swig_module.type_initial[i]) {
-#ifdef SWIGRUNTIME_DEBUG
-          printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
-#endif
-          cast->type = ret;
-          ret = 0;
-        } else {
-          /* Check for casting already in the list */
-          swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
-#ifdef SWIGRUNTIME_DEBUG
-          if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
-#endif
-          if (!ocast) ret = 0;
-        }
-      }
-      
-      if (!ret) {
-#ifdef SWIGRUNTIME_DEBUG
-        printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
-#endif
-        if (type->cast) {
-          type->cast->prev = cast;
-          cast->next = type->cast;
-        }
-        type->cast = cast;
-      }
-      cast++;
-    }
-    /* Set entry in modules->types array equal to the type */
-    swig_module.types[i] = type;
-  }
-  swig_module.types[i] = 0;
-  
-#ifdef SWIGRUNTIME_DEBUG
-  printf("**** SWIG_InitializeModule: Cast List ******\n");
-  for (i = 0; i < swig_module.size; ++i) {
-    int j = 0;
-    swig_cast_info *cast = swig_module.cast_initial[i];
-    printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
-    while (cast->type) {
-      printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
-      cast++;
-      ++j;
-    }
-    printf("---- Total casts: %d\n",j);
-  }
-  printf("**** SWIG_InitializeModule: Cast List ******\n");
-#endif
-}
-
-/* This function will propagate the clientdata field of type to
-* any new swig_type_info structures that have been added into the list
-* of equivalent types.  It is like calling
-* SWIG_TypeClientData(type, clientdata) a second time.
-*/
-SWIGRUNTIME void
-SWIG_PropagateClientData(void) {
-  size_t i;
-  swig_cast_info *equiv;
-  static int init_run = 0;
-  
-  if (init_run) return;
-  init_run = 1;
-  
-  for (i = 0; i < swig_module.size; i++) {
-    if (swig_module.types[i]->clientdata) {
-      equiv = swig_module.types[i]->cast;
-      while (equiv) {
-        if (!equiv->converter) {
-          if (equiv->type && !equiv->type->clientdata)
-          SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
-        }
-        equiv = equiv->next;
-      }
-    }
-  }
-}
-
-#ifdef __cplusplus
-#if 0
-{
-  /* c-mode */
-#endif
-}
-#endif
-
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-  
-  /* Python-specific SWIG API */
-#define SWIG_newvarlink()                             SWIG_Python_newvarlink()
-#define SWIG_addvarlink(p, name, get_attr, set_attr)  SWIG_Python_addvarlink(p, name, get_attr, set_attr)
-#define SWIG_InstallConstants(d, constants)           SWIG_Python_InstallConstants(d, constants)
-  
-  /* -----------------------------------------------------------------------------
-   * global variable support code.
-   * ----------------------------------------------------------------------------- */
-  
-  typedef struct swig_globalvar {
-    char       *name;                  /* Name of global variable */
-    PyObject *(*get_attr)(void);       /* Return the current value */
-    int       (*set_attr)(PyObject *); /* Set the value */
-    struct swig_globalvar *next;
-  } swig_globalvar;
-  
-  typedef struct swig_varlinkobject {
-    PyObject_HEAD
-    swig_globalvar *vars;
-  } swig_varlinkobject;
-  
-  SWIGINTERN PyObject *
-  swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
-#if PY_VERSION_HEX >= 0x03000000
-    return PyUnicode_InternFromString("<Swig global variables>");
-#else
-    return PyString_FromString("<Swig global variables>");
-#endif
-  }
-  
-  SWIGINTERN PyObject *
-  swig_varlink_str(swig_varlinkobject *v) {
-#if PY_VERSION_HEX >= 0x03000000
-    PyObject *str = PyUnicode_InternFromString("(");
-    PyObject *tail;
-    PyObject *joined;
-    swig_globalvar *var;
-    for (var = v->vars; var; var=var->next) {
-      tail = PyUnicode_FromString(var->name);
-      joined = PyUnicode_Concat(str, tail);
-      Py_DecRef(str);
-      Py_DecRef(tail);
-      str = joined;
-      if (var->next) {
-        tail = PyUnicode_InternFromString(", ");
-        joined = PyUnicode_Concat(str, tail);
-        Py_DecRef(str);
-        Py_DecRef(tail);
-        str = joined;
-      }
-    }
-    tail = PyUnicode_InternFromString(")");
-    joined = PyUnicode_Concat(str, tail);
-    Py_DecRef(str);
-    Py_DecRef(tail);
-    str = joined;
-#else
-    PyObject *str = PyString_FromString("(");
-    swig_globalvar *var;
-    for (var = v->vars; var; var=var->next) {
-      PyString_ConcatAndDel(&str,PyString_FromString(var->name));
-      if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
-    }
-    PyString_ConcatAndDel(&str,PyString_FromString(")"));
-#endif
-    return str;
-  }
-  
-  SWIGINTERN int
-  swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
-    char *tmp;
-    PyObject *str = swig_varlink_str(v);
-    fprintf(fp,"Swig global variables ");
-    fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str));
-    SWIG_Python_str_DelForPy3(tmp);
-    Py_DECREF(str);
-    return 0;
-  }
-  
-  SWIGINTERN void
-  swig_varlink_dealloc(swig_varlinkobject *v) {
-    swig_globalvar *var = v->vars;
-    while (var) {
-      swig_globalvar *n = var->next;
-      free(var->name);
-      free(var);
-      var = n;
-    }
-  }
-  
-  SWIGINTERN PyObject *
-  swig_varlink_getattr(swig_varlinkobject *v, char *n) {
-    PyObject *res = NULL;
-    swig_globalvar *var = v->vars;
-    while (var) {
-      if (strcmp(var->name,n) == 0) {
-        res = (*var->get_attr)();
-        break;
-      }
-      var = var->next;
-    }
-    if (res == NULL && !PyErr_Occurred()) {
-      PyErr_SetString(PyExc_NameError,"Unknown C global variable");
-    }
-    return res;
-  }
-  
-  SWIGINTERN int
-  swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
-    int res = 1;
-    swig_globalvar *var = v->vars;
-    while (var) {
-      if (strcmp(var->name,n) == 0) {
-        res = (*var->set_attr)(p);
-        break;
-      }
-      var = var->next;
-    }
-    if (res == 1 && !PyErr_Occurred()) {
-      PyErr_SetString(PyExc_NameError,"Unknown C global variable");
-    }
-    return res;
-  }
-  
-  SWIGINTERN PyTypeObject*
-  swig_varlink_type(void) {
-    static char varlink__doc__[] = "Swig var link object";
-    static PyTypeObject varlink_type;
-    static int type_init = 0;  
-    if (!type_init) {
-      const PyTypeObject tmp
-      = {
-        /* PyObject header changed in Python 3 */
-#if PY_VERSION_HEX >= 0x03000000
-        PyVarObject_HEAD_INIT(&PyType_Type, 0)
-#else
-        PyObject_HEAD_INIT(NULL)
-        0,                                  /* Number of items in variable part (ob_size) */
-#endif
-        (char *)"swigvarlink",              /* Type name (tp_name) */
-        sizeof(swig_varlinkobject),         /* Basic size (tp_basicsize) */
-        0,                                  /* Itemsize (tp_itemsize) */
-        (destructor) swig_varlink_dealloc,  /* Deallocator (tp_dealloc) */ 
-        (printfunc) swig_varlink_print,     /* Print (tp_print) */
-        (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
-        (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
-        0,                                  /* tp_compare */
-        (reprfunc) swig_varlink_repr,       /* tp_repr */
-        0,                                  /* tp_as_number */
-        0,                                  /* tp_as_sequence */
-        0,                                  /* tp_as_mapping */
-        0,                                  /* tp_hash */
-        0,                                  /* tp_call */
-        (reprfunc) swig_varlink_str,        /* tp_str */
-        0,                                  /* tp_getattro */
-        0,                                  /* tp_setattro */
-        0,                                  /* tp_as_buffer */
-        0,                                  /* tp_flags */
-        varlink__doc__,                     /* tp_doc */
-        0,                                  /* tp_traverse */
-        0,                                  /* tp_clear */
-        0,                                  /* tp_richcompare */
-        0,                                  /* tp_weaklistoffset */
-#if PY_VERSION_HEX >= 0x02020000
-        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
-#endif
-#if PY_VERSION_HEX >= 0x02030000
-        0,                                  /* tp_del */
-#endif
-#ifdef COUNT_ALLOCS
-        0,0,0,0                             /* tp_alloc -> tp_next */
-#endif
-      };
-      varlink_type = tmp;
-      /* for Python 3 we already assigned ob_type in PyVarObject_HEAD_INIT() */
-#if PY_VERSION_HEX < 0x03000000
-      varlink_type.ob_type = &PyType_Type;
-#endif
-      type_init = 1;
-    }
-    return &varlink_type;
-  }
-  
-  /* Create a variable linking object for use later */
-  SWIGINTERN PyObject *
-  SWIG_Python_newvarlink(void) {
-    swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
-    if (result) {
-      result->vars = 0;
-    }
-    return ((PyObject*) result);
-  }
-  
-  SWIGINTERN void 
-  SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
-    swig_varlinkobject *v = (swig_varlinkobject *) p;
-    swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
-    if (gv) {
-      size_t size = strlen(name)+1;
-      gv->name = (char *)malloc(size);
-      if (gv->name) {
-        strncpy(gv->name,name,size);
-        gv->get_attr = get_attr;
-        gv->set_attr = set_attr;
-        gv->next = v->vars;
-      }
-    }
-    v->vars = gv;
-  }
-  
-  SWIGINTERN PyObject *
-  SWIG_globals(void) {
-    static PyObject *_SWIG_globals = 0; 
-    if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();  
-    return _SWIG_globals;
-  }
-  
-  /* -----------------------------------------------------------------------------
-   * constants/methods manipulation
-   * ----------------------------------------------------------------------------- */
-  
-  /* Install Constants */
-  SWIGINTERN void
-  SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
-    PyObject *obj = 0;
-    size_t i;
-    for (i = 0; constants[i].type; ++i) {
-      switch(constants[i].type) {
-      case SWIG_PY_POINTER:
-        obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
-        break;
-      case SWIG_PY_BINARY:
-        obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
-        break;
-      default:
-        obj = 0;
-        break;
-      }
-      if (obj) {
-        PyDict_SetItemString(d, constants[i].name, obj);
-        Py_DECREF(obj);
-      }
-    }
-  }
-  
-  /* -----------------------------------------------------------------------------*/
-  /* Fix SwigMethods to carry the callback ptrs when needed */
-  /* -----------------------------------------------------------------------------*/
-  
-  SWIGINTERN void
-  SWIG_Python_FixMethods(PyMethodDef *methods,
-    swig_const_info *const_table,
-    swig_type_info **types,
-    swig_type_info **types_initial) {
-    size_t i;
-    for (i = 0; methods[i].ml_name; ++i) {
-      const char *c = methods[i].ml_doc;
-      if (c && (c = strstr(c, "swig_ptr: "))) {
-        int j;
-        swig_const_info *ci = 0;
-        const char *name = c + 10;
-        for (j = 0; const_table[j].type; ++j) {
-          if (strncmp(const_table[j].name, name, 
-              strlen(const_table[j].name)) == 0) {
-            ci = &(const_table[j]);
-            break;
-          }
-        }
-        if (ci) {
-          size_t shift = (ci->ptype) - types;
-          swig_type_info *ty = types_initial[shift];
-          size_t ldoc = (c - methods[i].ml_doc);
-          size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
-          char *ndoc = (char*)malloc(ldoc + lptr + 10);
-          if (ndoc) {
-            char *buff = ndoc;
-            void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
-            if (ptr) {
-              strncpy(buff, methods[i].ml_doc, ldoc);
-              buff += ldoc;
-              strncpy(buff, "swig_ptr: ", 10);
-              buff += 10;
-              SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
-              methods[i].ml_doc = ndoc;
-            }
-          }
-        }
-      }
-    }
-  } 
-  
-#ifdef __cplusplus
-}
-#endif
-
-/* -----------------------------------------------------------------------------*
- *  Partial Init method
- * -----------------------------------------------------------------------------*/
-
-#ifdef __cplusplus
-extern "C"
-#endif
-
-SWIGEXPORT 
-#if PY_VERSION_HEX >= 0x03000000
-PyObject*
-#else
-void
-#endif
-SWIG_init(void) {
-  PyObject *m, *d;  
-#if PY_VERSION_HEX >= 0x03000000
-  static struct PyModuleDef SWIG_module = {
-    PyModuleDef_HEAD_INIT,
-    (char *) SWIG_name,
-    NULL,
-    -1,
-    SwigMethods,
-    NULL,
-    NULL,
-    NULL,
-    NULL
-  };
-#endif
-  
-  /* Fix SwigMethods to carry the callback ptrs when needed */
-  SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
-  
-#if PY_VERSION_HEX >= 0x03000000
-  m = PyModule_Create(&SWIG_module);
-#else
-  m = Py_InitModule((char *) SWIG_name, SwigMethods);
-#endif
-  d = PyModule_GetDict(m);
-  
-  SWIG_InitializeModule(0);
-  SWIG_InstallConstants(d,swig_const_table);
-  
-  
-  SWIG_Python_SetConstant(d, "ATTR_a",SWIG_FromCharPtr("Execution_Time"));
-  SWIG_Python_SetConstant(d, "ATTR_c",SWIG_FromCharPtr("Checkpoint"));
-  SWIG_Python_SetConstant(d, "ATTR_e",SWIG_FromCharPtr("Error_Path"));
-  SWIG_Python_SetConstant(d, "ATTR_f",SWIG_FromCharPtr("fault_tolerant"));
-  SWIG_Python_SetConstant(d, "ATTR_g",SWIG_FromCharPtr("group_list"));
-  SWIG_Python_SetConstant(d, "ATTR_h",SWIG_FromCharPtr("Hold_Types"));
-  SWIG_Python_SetConstant(d, "ATTR_j",SWIG_FromCharPtr("Join_Path"));
-  SWIG_Python_SetConstant(d, "ATTR_k",SWIG_FromCharPtr("Keep_Files"));
-  SWIG_Python_SetConstant(d, "ATTR_l",SWIG_FromCharPtr("Resource_List"));
-  SWIG_Python_SetConstant(d, "ATTR_m",SWIG_FromCharPtr("Mail_Points"));
-  SWIG_Python_SetConstant(d, "ATTR_o",SWIG_FromCharPtr("Output_Path"));
-  SWIG_Python_SetConstant(d, "ATTR_p",SWIG_FromCharPtr("Priority"));
-  SWIG_Python_SetConstant(d, "ATTR_q",SWIG_FromCharPtr("destination"));
-  SWIG_Python_SetConstant(d, "ATTR_r",SWIG_FromCharPtr("Rerunable"));
-  SWIG_Python_SetConstant(d, "ATTR_t",SWIG_FromCharPtr("job_array_request"));
-  SWIG_Python_SetConstant(d, "ATTR_array_id",SWIG_FromCharPtr("job_array_id"));
-  SWIG_Python_SetConstant(d, "ATTR_u",SWIG_FromCharPtr("User_List"));
-  SWIG_Python_SetConstant(d, "ATTR_v",SWIG_FromCharPtr("Variable_List"));
-  SWIG_Python_SetConstant(d, "ATTR_A",SWIG_FromCharPtr("Account_Name"));
-  SWIG_Python_SetConstant(d, "ATTR_M",SWIG_FromCharPtr("Mail_Users"));
-  SWIG_Python_SetConstant(d, "ATTR_N",SWIG_FromCharPtr("Job_Name"));
-  SWIG_Python_SetConstant(d, "ATTR_S",SWIG_FromCharPtr("Shell_Path_List"));
-  SWIG_Python_SetConstant(d, "ATTR_depend",SWIG_FromCharPtr("depend"));
-  SWIG_Python_SetConstant(d, "ATTR_inter",SWIG_FromCharPtr("interactive"));
-  SWIG_Python_SetConstant(d, "ATTR_stagein",SWIG_FromCharPtr("stagein"));
-  SWIG_Python_SetConstant(d, "ATTR_stageout",SWIG_FromCharPtr("stageout"));
-  SWIG_Python_SetConstant(d, "ATTR_jobtype",SWIG_FromCharPtr("jobtype"));
-  SWIG_Python_SetConstant(d, "ATTR_ctime",SWIG_FromCharPtr("ctime"));
-  SWIG_Python_SetConstant(d, "ATTR_exechost",SWIG_FromCharPtr("exec_host"));
-  SWIG_Python_SetConstant(d, "ATTR_mtime",SWIG_FromCharPtr("mtime"));
-  SWIG_Python_SetConstant(d, "ATTR_qtime",SWIG_FromCharPtr("qtime"));
-  SWIG_Python_SetConstant(d, "ATTR_session",SWIG_FromCharPtr("session_id"));
-  SWIG_Python_SetConstant(d, "ATTR_euser",SWIG_FromCharPtr("euser"));
-  SWIG_Python_SetConstant(d, "ATTR_egroup",SWIG_FromCharPtr("egroup"));
-  SWIG_Python_SetConstant(d, "ATTR_hashname",SWIG_FromCharPtr("hashname"));
-  SWIG_Python_SetConstant(d, "ATTR_hopcount",SWIG_FromCharPtr("hop_count"));
-  SWIG_Python_SetConstant(d, "ATTR_security",SWIG_FromCharPtr("security"));
-  SWIG_Python_SetConstant(d, "ATTR_sched_hint",SWIG_FromCharPtr("sched_hint"));
-  SWIG_Python_SetConstant(d, "ATTR_substate",SWIG_FromCharPtr("substate"));
-  SWIG_Python_SetConstant(d, "ATTR_name",SWIG_FromCharPtr("Job_Name"));
-  SWIG_Python_SetConstant(d, "ATTR_owner",SWIG_FromCharPtr("Job_Owner"));
-  SWIG_Python_SetConstant(d, "ATTR_used",SWIG_FromCharPtr("resources_used"));
-  SWIG_Python_SetConstant(d, "ATTR_state",SWIG_FromCharPtr("job_state"));
-  SWIG_Python_SetConstant(d, "ATTR_queue",SWIG_FromCharPtr("queue"));
-  SWIG_Python_SetConstant(d, "ATTR_server",SWIG_FromCharPtr("server"));
-  SWIG_Python_SetConstant(d, "ATTR_maxrun",SWIG_FromCharPtr("max_running"));
-  SWIG_Python_SetConstant(d, "ATTR_maxreport",SWIG_FromCharPtr("max_report"));
-  SWIG_Python_SetConstant(d, "ATTR_total",SWIG_FromCharPtr("total_jobs"));
-  SWIG_Python_SetConstant(d, "ATTR_comment",SWIG_FromCharPtr("comment"));
-  SWIG_Python_SetConstant(d, "ATTR_cookie",SWIG_FromCharPtr("cookie"));
-  SWIG_Python_SetConstant(d, "ATTR_qrank",SWIG_FromCharPtr("queue_rank"));
-  SWIG_Python_SetConstant(d, "ATTR_altid",SWIG_FromCharPtr("alt_id"));
-  SWIG_Python_SetConstant(d, "ATTR_etime",SWIG_FromCharPtr("etime"));
-  SWIG_Python_SetConstant(d, "ATTR_exitstat",SWIG_FromCharPtr("exit_status"));
-  SWIG_Python_SetConstant(d, "ATTR_forwardx11",SWIG_FromCharPtr("forward_x11"));
-  SWIG_Python_SetConstant(d, "ATTR_submit_args",SWIG_FromCharPtr("submit_args"));
-  SWIG_Python_SetConstant(d, "ATTR_tokens",SWIG_FromCharPtr("tokens"));
-  SWIG_Python_SetConstant(d, "ATTR_netcounter",SWIG_FromCharPtr("net_counter"));
-  SWIG_Python_SetConstant(d, "ATTR_umask",SWIG_FromCharPtr("umask"));
-  SWIG_Python_SetConstant(d, "ATTR_start_time",SWIG_FromCharPtr("start_time"));
-  SWIG_Python_SetConstant(d, "ATTR_start_count",SWIG_FromCharPtr("start_count"));
-  SWIG_Python_SetConstant(d, "ATTR_checkpoint_dir",SWIG_FromCharPtr("checkpoint_dir"));
-  SWIG_Python_SetConstant(d, "ATTR_checkpoint_name",SWIG_FromCharPtr("checkpoint_name"));
-  SWIG_Python_SetConstant(d, "ATTR_checkpoint_time",SWIG_FromCharPtr("checkpoint_time"));
-  SWIG_Python_SetConstant(d, "ATTR_checkpoint_restart_status",SWIG_FromCharPtr("checkpoint_restart_status"));
-  SWIG_Python_SetConstant(d, "ATTR_restart_name",SWIG_FromCharPtr("restart_name"));
-  SWIG_Python_SetConstant(d, "ATTR_comp_time",SWIG_FromCharPtr("comp_time"));
-  SWIG_Python_SetConstant(d, "ATTR_reported",SWIG_FromCharPtr("reported"));
-  SWIG_Python_SetConstant(d, "ATTR_intcmd",SWIG_FromCharPtr("inter_cmd"));
-  SWIG_Python_SetConstant(d, "ATTR_aclgren",SWIG_FromCharPtr("acl_group_enable"));
-  SWIG_Python_SetConstant(d, "ATTR_aclgroup",SWIG_FromCharPtr("acl_groups"));
-  SWIG_Python_SetConstant(d, "ATTR_aclhten",SWIG_FromCharPtr("acl_host_enable"));
-  SWIG_Python_SetConstant(d, "ATTR_aclhost",SWIG_FromCharPtr("acl_hosts"));
-  SWIG_Python_SetConstant(d, "ATTR_acluren",SWIG_FromCharPtr("acl_user_enable"));
-  SWIG_Python_SetConstant(d, "ATTR_acluser",SWIG_FromCharPtr("acl_users"));
-  SWIG_Python_SetConstant(d, "ATTR_altrouter",SWIG_FromCharPtr("alt_router"));
-  SWIG_Python_SetConstant(d, "ATTR_checkpoint_min",SWIG_FromCharPtr("checkpoint_min"));
-  SWIG_Python_SetConstant(d, "ATTR_enable",SWIG_FromCharPtr("enabled"));
-  SWIG_Python_SetConstant(d, "ATTR_fromroute",SWIG_FromCharPtr("from_route_only"));
-  SWIG_Python_SetConstant(d, "ATTR_hostlist",SWIG_FromCharPtr("hostlist"));
-  SWIG_Python_SetConstant(d, "ATTR_killdelay",SWIG_FromCharPtr("kill_delay"));
-  SWIG_Python_SetConstant(d, "ATTR_maxgrprun",SWIG_FromCharPtr("max_group_run"));
-  SWIG_Python_SetConstant(d, "ATTR_maxque",SWIG_FromCharPtr("max_queuable"));
-  SWIG_Python_SetConstant(d, "ATTR_maxuserque",SWIG_FromCharPtr("max_user_queuable"));
-  SWIG_Python_SetConstant(d, "ATTR_maxuserrun",SWIG_FromCharPtr("max_user_run"));
-  SWIG_Python_SetConstant(d, "ATTR_qtype",SWIG_FromCharPtr("queue_type"));
-  SWIG_Python_SetConstant(d, "ATTR_rescassn",SWIG_FromCharPtr("resources_assigned"));
-  SWIG_Python_SetConstant(d, "ATTR_rescdflt",SWIG_FromCharPtr("resources_default"));
-  SWIG_Python_SetConstant(d, "ATTR_rescmax",SWIG_FromCharPtr("resources_max"));
-  SWIG_Python_SetConstant(d, "ATTR_rescmin",SWIG_FromCharPtr("resources_min"));
-  SWIG_Python_SetConstant(d, "ATTR_rerunnable",SWIG_FromCharPtr("restartable"));
-  SWIG_Python_SetConstant(d, "ATTR_rndzretry",SWIG_FromCharPtr("rendezvous_retry"));
-  SWIG_Python_SetConstant(d, "ATTR_routedest",SWIG_FromCharPtr("route_destinations"));
-  SWIG_Python_SetConstant(d, "ATTR_routeheld",SWIG_FromCharPtr("route_held_jobs"));
-  SWIG_Python_SetConstant(d, "ATTR_routewait",SWIG_FromCharPtr("route_waiting_jobs"));
-  SWIG_Python_SetConstant(d, "ATTR_routeretry",SWIG_FromCharPtr("route_retry_time"));
-  SWIG_Python_SetConstant(d, "ATTR_routelife",SWIG_FromCharPtr("route_lifetime"));
-  SWIG_Python_SetConstant(d, "ATTR_rsvexpdt",SWIG_FromCharPtr("reserved_expedite"));
-  SWIG_Python_SetConstant(d, "ATTR_rsvsync",SWIG_FromCharPtr("reserved_sync"));
-  SWIG_Python_SetConstant(d, "ATTR_start",SWIG_FromCharPtr("started"));
-  SWIG_Python_SetConstant(d, "ATTR_count",SWIG_FromCharPtr("state_count"));
-  SWIG_Python_SetConstant(d, "ATTR_number",SWIG_FromCharPtr("number_jobs"));
-  SWIG_Python_SetConstant(d, "ATTR_acllogic",SWIG_FromCharPtr("acl_logic_or"));
-  SWIG_Python_SetConstant(d, "ATTR_aclgrpslpy",SWIG_FromCharPtr("acl_group_sloppy"));
-  SWIG_Python_SetConstant(d, "ATTR_keepcompleted",SWIG_FromCharPtr("keep_completed"));
-  SWIG_Python_SetConstant(d, "ATTR_disallowedtypes",SWIG_FromCharPtr("disallowed_types"));
-  SWIG_Python_SetConstant(d, "ATTR_is_transit",SWIG_FromCharPtr("is_transit"));
-  SWIG_Python_SetConstant(d, "ATTR_aclroot",SWIG_FromCharPtr("acl_roots"));
-  SWIG_Python_SetConstant(d, "ATTR_managers",SWIG_FromCharPtr("managers"));
-  SWIG_Python_SetConstant(d, "ATTR_dfltque",SWIG_FromCharPtr("default_queue"));
-  SWIG_Python_SetConstant(d, "ATTR_dispsvrsuffix",SWIG_FromCharPtr("display_job_server_suffix"));
-  SWIG_Python_SetConstant(d, "ATTR_jobsuffixalias",SWIG_FromCharPtr("job_suffix_alias"));
-  SWIG_Python_SetConstant(d, "ATTR_defnode",SWIG_FromCharPtr("default_node"));
-  SWIG_Python_SetConstant(d, "ATTR_locsvrs",SWIG_FromCharPtr("location_servers"));
-  SWIG_Python_SetConstant(d, "ATTR_logevents",SWIG_FromCharPtr("log_events"));
-  SWIG_Python_SetConstant(d, "ATTR_logfile",SWIG_FromCharPtr("log_file"));
-  SWIG_Python_SetConstant(d, "ATTR_loglevel",SWIG_FromCharPtr("log_level"));
-  SWIG_Python_SetConstant(d, "ATTR_mailfrom",SWIG_FromCharPtr("mail_from"));
-  SWIG_Python_SetConstant(d, "ATTR_nodepack",SWIG_FromCharPtr("node_pack"));
-  SWIG_Python_SetConstant(d, "ATTR_nodesuffix",SWIG_FromCharPtr("node_suffix"));
-  SWIG_Python_SetConstant(d, "ATTR_operators",SWIG_FromCharPtr("operators"));
-  SWIG_Python_SetConstant(d, "ATTR_queryother",SWIG_FromCharPtr("query_other_jobs"));
-  SWIG_Python_SetConstant(d, "ATTR_resccost",SWIG_FromCharPtr("resources_cost"));
-  SWIG_Python_SetConstant(d, "ATTR_rescavail",SWIG_FromCharPtr("resources_available"));
-  SWIG_Python_SetConstant(d, "ATTR_schedit",SWIG_FromCharPtr("scheduler_iteration"));
-  SWIG_Python_SetConstant(d, "ATTR_scheduling",SWIG_FromCharPtr("scheduling"));
-  SWIG_Python_SetConstant(d, "ATTR_status",SWIG_FromCharPtr("server_state"));
-  SWIG_Python_SetConstant(d, "ATTR_syscost",SWIG_FromCharPtr("system_cost"));
-  SWIG_Python_SetConstant(d, "ATTR_pingrate",SWIG_FromCharPtr("node_ping_rate"));
-  SWIG_Python_SetConstant(d, "ATTR_ndchkrate",SWIG_FromCharPtr("node_check_rate"));
-  SWIG_Python_SetConstant(d, "ATTR_tcptimeout",SWIG_FromCharPtr("tcp_timeout"));
-  SWIG_Python_SetConstant(d, "ATTR_jobstatrate",SWIG_FromCharPtr("job_stat_rate"));
-  SWIG_Python_SetConstant(d, "ATTR_polljobs",SWIG_FromCharPtr("poll_jobs"));
-  SWIG_Python_SetConstant(d, "ATTR_downonerror",SWIG_FromCharPtr("down_on_error"));
-  SWIG_Python_SetConstant(d, "ATTR_disableserveridcheck",SWIG_FromCharPtr("disable_server_id_check"));
-  SWIG_Python_SetConstant(d, "ATTR_jobnanny",SWIG_FromCharPtr("job_nanny"));
-  SWIG_Python_SetConstant(d, "ATTR_ownerpurge",SWIG_FromCharPtr("owner_purge"));
-  SWIG_Python_SetConstant(d, "ATTR_qcqlimits",SWIG_FromCharPtr("queue_centric_limits"));
-  SWIG_Python_SetConstant(d, "ATTR_momjobsync",SWIG_FromCharPtr("mom_job_sync"));
-  SWIG_Python_SetConstant(d, "ATTR_maildomain",SWIG_FromCharPtr("mail_domain"));
-  SWIG_Python_SetConstant(d, "ATTR_pbsversion",SWIG_FromCharPtr("pbs_version"));
-  SWIG_Python_SetConstant(d, "ATTR_submithosts",SWIG_FromCharPtr("submit_hosts"));
-  SWIG_Python_SetConstant(d, "ATTR_allownodesubmit",SWIG_FromCharPtr("allow_node_submit"));
-  SWIG_Python_SetConstant(d, "ATTR_allowproxyuser",SWIG_FromCharPtr("allow_proxy_user"));
-  SWIG_Python_SetConstant(d, "ATTR_autonodenp",SWIG_FromCharPtr("auto_node_np"));
-  SWIG_Python_SetConstant(d, "ATTR_servername",SWIG_FromCharPtr("server_name"));
-  SWIG_Python_SetConstant(d, "ATTR_logfilemaxsize",SWIG_FromCharPtr("log_file_max_size"));
-  SWIG_Python_SetConstant(d, "ATTR_logfilerolldepth",SWIG_FromCharPtr("log_file_roll_depth"));
-  SWIG_Python_SetConstant(d, "ATTR_logkeepdays",SWIG_FromCharPtr("log_keep_days"));
-  SWIG_Python_SetConstant(d, "ATTR_nextjobnum",SWIG_FromCharPtr("next_job_number"));
-  SWIG_Python_SetConstant(d, "ATTR_extraresc",SWIG_FromCharPtr("extra_resc"));
-  SWIG_Python_SetConstant(d, "ATTR_schedversion",SWIG_FromCharPtr("sched_version"));
-  SWIG_Python_SetConstant(d, "ATTR_acctkeepdays",SWIG_FromCharPtr("accounting_keep_days"));
-  SWIG_Python_SetConstant(d, "ATTR_lockfile",SWIG_FromCharPtr("lock_file"));
-  SWIG_Python_SetConstant(d, "ATTR_credentiallifetime",SWIG_FromCharPtr("credential_lifetime"));
-  SWIG_Python_SetConstant(d, "ATTR_jobmustreport",SWIG_FromCharPtr("job_must_report"));
-  SWIG_Python_SetConstant(d, "ATTR_LockfileUpdateTime",SWIG_FromCharPtr("lock_file_update_time"));
-  SWIG_Python_SetConstant(d, "ATTR_LockfileCheckTime",SWIG_FromCharPtr("lock_file_check_time"));
-  SWIG_Python_SetConstant(d, "ATTR_npdefault",SWIG_FromCharPtr("np_default"));
-  SWIG_Python_SetConstant(d, "ATTR_jobstarttimeout",SWIG_FromCharPtr("job_start_timeout"));
-  SWIG_Python_SetConstant(d, "ATTR_NODE_state",SWIG_FromCharPtr("state"));
-  SWIG_Python_SetConstant(d, "ATTR_NODE_np",SWIG_FromCharPtr("np"));
-  SWIG_Python_SetConstant(d, "ATTR_NODE_properties",SWIG_FromCharPtr("properties"));
-  SWIG_Python_SetConstant(d, "ATTR_NODE_ntype",SWIG_FromCharPtr("ntype"));
-  SWIG_Python_SetConstant(d, "ATTR_NODE_jobs",SWIG_FromCharPtr("jobs"));
-  SWIG_Python_SetConstant(d, "ATTR_NODE_status",SWIG_FromCharPtr("status"));
-  SWIG_Python_SetConstant(d, "ATTR_NODE_note",SWIG_FromCharPtr("note"));
-  SWIG_Python_SetConstant(d, "ATTR_mailsubjectfmt",SWIG_FromCharPtr("mail_subject_fmt"));
-  SWIG_Python_SetConstant(d, "ATTR_mailbodyfmt",SWIG_FromCharPtr("mail_body_fmt"));
-  SWIG_Python_SetConstant(d, "CHECKPOINT_UNSPECIFIED",SWIG_FromCharPtr("u"));
-  SWIG_Python_SetConstant(d, "NO_HOLD",SWIG_FromCharPtr("n"));
-  SWIG_Python_SetConstant(d, "NO_JOIN",SWIG_FromCharPtr("n"));
-  SWIG_Python_SetConstant(d, "NO_KEEP",SWIG_FromCharPtr("n"));
-  SWIG_Python_SetConstant(d, "MAIL_AT_ABORT",SWIG_FromCharPtr("a"));
-  SWIG_Python_SetConstant(d, "DELDELAY",SWIG_FromCharPtr("deldelay="));
-  SWIG_Python_SetConstant(d, "DELPURGE",SWIG_FromCharPtr("delpurge="));
-  SWIG_Python_SetConstant(d, "PURGECOMP",SWIG_FromCharPtr("purgecomplete="));
-  SWIG_Python_SetConstant(d, "EXECQUEONLY",SWIG_FromCharPtr("exec_queue_only"));
-  SWIG_Python_SetConstant(d, "RERUNFORCE",SWIG_FromCharPtr("force"));
-  SWIG_Python_SetConstant(d, "USER_HOLD",SWIG_FromCharPtr("u"));
-  SWIG_Python_SetConstant(d, "OTHER_HOLD",SWIG_FromCharPtr("o"));
-  SWIG_Python_SetConstant(d, "SYSTEM_HOLD",SWIG_FromCharPtr("s"));
-  SWIG_Python_SetConstant(d, "ND_free",SWIG_FromCharPtr("free"));
-  SWIG_Python_SetConstant(d, "ND_offline",SWIG_FromCharPtr("offline"));
-  SWIG_Python_SetConstant(d, "ND_down",SWIG_FromCharPtr("down"));
-  SWIG_Python_SetConstant(d, "ND_reserve",SWIG_FromCharPtr("reserve"));
-  SWIG_Python_SetConstant(d, "ND_job_exclusive",SWIG_FromCharPtr("job-exclusive"));
-  SWIG_Python_SetConstant(d, "ND_job_sharing",SWIG_FromCharPtr("job-sharing"));
-  SWIG_Python_SetConstant(d, "ND_busy",SWIG_FromCharPtr("busy"));
-  SWIG_Python_SetConstant(d, "ND_state_unknown",SWIG_FromCharPtr("state-unknown"));
-  SWIG_Python_SetConstant(d, "ND_timeshared",SWIG_FromCharPtr("time-shared"));
-  SWIG_Python_SetConstant(d, "ND_cluster",SWIG_FromCharPtr("cluster"));
-  SWIG_Python_SetConstant(d, "Q_DT_batch",SWIG_FromCharPtr("batch"));
-  SWIG_Python_SetConstant(d, "Q_DT_interactive",SWIG_FromCharPtr("interactive"));
-  SWIG_Python_SetConstant(d, "Q_DT_rerunable",SWIG_FromCharPtr("rerunable"));
-  SWIG_Python_SetConstant(d, "Q_DT_nonrerunable",SWIG_FromCharPtr("nonrerunable"));
-  SWIG_Python_SetConstant(d, "Q_DT_fault_tolerant",SWIG_FromCharPtr("fault_tolerant"));
-  SWIG_Python_SetConstant(d, "Q_DT_fault_intolerant",SWIG_FromCharPtr("fault_intolerant"));
-  SWIG_Python_SetConstant(d, "Q_DT_job_array",SWIG_FromCharPtr("job_array"));
-  SWIG_Python_SetConstant(d, "MAX_ENCODE_BFR",SWIG_From_int((int)(100)));
-  SWIG_Python_SetConstant(d, "MGR_CMD_CREATE",SWIG_From_int((int)(0)));
-  SWIG_Python_SetConstant(d, "MGR_CMD_DELETE",SWIG_From_int((int)(1)));
-  SWIG_Python_SetConstant(d, "MGR_CMD_SET",SWIG_From_int((int)(2)));
-  SWIG_Python_SetConstant(d, "MGR_CMD_UNSET",SWIG_From_int((int)(3)));
-  SWIG_Python_SetConstant(d, "MGR_CMD_LIST",SWIG_From_int((int)(4)));
-  SWIG_Python_SetConstant(d, "MGR_CMD_PRINT",SWIG_From_int((int)(5)));
-  SWIG_Python_SetConstant(d, "MGR_CMD_ACTIVE",SWIG_From_int((int)(6)));
-  SWIG_Python_SetConstant(d, "MGR_OBJ_NONE",SWIG_From_int((int)(-1)));
-  SWIG_Python_SetConstant(d, "MGR_OBJ_SERVER",SWIG_From_int((int)(0)));
-  SWIG_Python_SetConstant(d, "MGR_OBJ_QUEUE",SWIG_From_int((int)(1)));
-  SWIG_Python_SetConstant(d, "MGR_OBJ_JOB",SWIG_From_int((int)(2)));
-  SWIG_Python_SetConstant(d, "MGR_OBJ_NODE",SWIG_From_int((int)(3)));
-  SWIG_Python_SetConstant(d, "MSG_OUT",SWIG_From_int((int)(1)));
-  SWIG_Python_SetConstant(d, "MSG_ERR",SWIG_From_int((int)(2)));
-  SWIG_Python_SetConstant(d, "SHUT_SIG",SWIG_From_int((int)(-1)));
-  SWIG_Python_SetConstant(d, "SHUT_IMMEDIATE",SWIG_From_int((int)(0)));
-  SWIG_Python_SetConstant(d, "SHUT_DELAY",SWIG_From_int((int)(1)));
-  SWIG_Python_SetConstant(d, "SHUT_QUICK",SWIG_From_int((int)(2)));
-  SWIG_Python_SetConstant(d, "SIG_RESUME",SWIG_FromCharPtr("resume"));
-  SWIG_Python_SetConstant(d, "SIG_SUSPEND",SWIG_FromCharPtr("suspend"));
-  SWIG_Python_SetConstant(d, "PBS_MAXHOSTNAME",SWIG_From_int((int)(1024)));
-  SWIG_Python_SetConstant(d, "MAXPATHLEN",SWIG_From_int((int)(1024)));
-  SWIG_Python_SetConstant(d, "MAXNAMLEN",SWIG_From_int((int)(255)));
-  SWIG_Python_SetConstant(d, "MAX_NOTE",SWIG_From_int((int)(256)));
-  SWIG_Python_SetConstant(d, "MAX_NOTE_STR",SWIG_FromCharPtr("256"));
-  SWIG_Python_SetConstant(d, "PBS_MAXUSER",SWIG_From_int((int)(32)));
-  SWIG_Python_SetConstant(d, "PBS_MAXGRPN",SWIG_From_int((int)(16)));
-  SWIG_Python_SetConstant(d, "PBS_MAXQUEUENAME",SWIG_From_int((int)(15)));
-  SWIG_Python_SetConstant(d, "PBS_MAXSERVERNAME",SWIG_From_int((int)(1024)));
-  SWIG_Python_SetConstant(d, "PBS_MAXJOBARRAYLEN",SWIG_From_int((int)(6)));
-  SWIG_Python_SetConstant(d, "PBS_MAXSEQNUM",SWIG_From_int((int)(8)));
-  SWIG_Python_SetConstant(d, "PBS_MAXPORTNUM",SWIG_From_int((int)(5)));
-  SWIG_Python_SetConstant(d, "PBS_MAXJOBARRAY",SWIG_From_int((int)(99999)));
-  SWIG_Python_SetConstant(d, "PBS_MAXSVRJOBID",SWIG_From_int((int)((8+1024+5+6+2))));
-  SWIG_Python_SetConstant(d, "PBS_MAXCLTJOBID",SWIG_From_int((int)(((8+1024+5+6+2) +1024+5+6+2))));
-  SWIG_Python_SetConstant(d, "PBS_MAXDEST",SWIG_From_int((int)(1024)));
-  SWIG_Python_SetConstant(d, "PBS_MAXROUTEDEST",SWIG_From_int((int)((15+1024+5+2))));
-  SWIG_Python_SetConstant(d, "PBS_USE_IFF",SWIG_From_int((int)(1)));
-  SWIG_Python_SetConstant(d, "PBS_INTERACTIVE",SWIG_From_int((int)(1)));
-  SWIG_Python_SetConstant(d, "PBS_TERM_BUF_SZ",SWIG_From_int((int)(80)));
-  SWIG_Python_SetConstant(d, "PBS_TERM_CCA",SWIG_From_int((int)(6)));
-  SWIG_Python_SetConstant(d, "PBS_QS_VERSION_BASE",SWIG_From_int((int)(0x00020300)));
-  SWIG_Python_SetConstant(d, "PBS_QS_VERSION_INT",SWIG_From_int((int)(1)));
-  SWIG_Python_SetConstant(d, "PBS_QS_VERSION",SWIG_From_int((int)((0x00020300+1))));
-  SWIG_Python_SetConstant(d, "PBS_BATCH_SERVICE_NAME",SWIG_FromCharPtr("pbs"));
-  SWIG_Python_SetConstant(d, "PBS_BATCH_SERVICE_PORT",SWIG_From_int((int)(15001)));
-  SWIG_Python_SetConstant(d, "PBS_BATCH_SERVICE_NAME_DIS",SWIG_FromCharPtr("pbs_dis"));
-  SWIG_Python_SetConstant(d, "PBS_BATCH_SERVICE_PORT_DIS",SWIG_From_int((int)(15001)));
-  SWIG_Python_SetConstant(d, "PBS_MOM_SERVICE_NAME",SWIG_FromCharPtr("pbs_mom"));
-  SWIG_Python_SetConstant(d, "PBS_MOM_SERVICE_PORT",SWIG_From_int((int)(15002)));
-  SWIG_Python_SetConstant(d, "PBS_MANAGER_SERVICE_NAME",SWIG_FromCharPtr("pbs_resmon"));
-  SWIG_Python_SetConstant(d, "PBS_MANAGER_SERVICE_PORT",SWIG_From_int((int)(15003)));
-  SWIG_Python_SetConstant(d, "PBS_SCHEDULER_SERVICE_NAME",SWIG_FromCharPtr("pbs_sched"));
-  SWIG_Python_SetConstant(d, "PBS_SCHEDULER_SERVICE_PORT",SWIG_From_int((int)(15004)));
-  SWIG_Python_SetConstant(d, "CHECKPOINTHOLD",SWIG_FromCharPtr("checkpoint_hold"));
-  SWIG_Python_SetConstant(d, "CHECKPOINTCONT",SWIG_FromCharPtr("checkpoint_cont"));
-  SWIG_Python_SetConstant(d, "MOM_DEFAULT_CHECKPOINT_DIR",SWIG_FromCharPtr("$MOMDEFAULTCHECKPOINTDIR$"));
-  SWIG_Python_SetConstant(d, "SET",SWIG_From_int((int)(SET)));
-  SWIG_Python_SetConstant(d, "UNSET",SWIG_From_int((int)(UNSET)));
-  SWIG_Python_SetConstant(d, "INCR",SWIG_From_int((int)(INCR)));
-  SWIG_Python_SetConstant(d, "DECR",SWIG_From_int((int)(DECR)));
-  SWIG_Python_SetConstant(d, "EQ",SWIG_From_int((int)(EQ)));
-  SWIG_Python_SetConstant(d, "NE",SWIG_From_int((int)(NE)));
-  SWIG_Python_SetConstant(d, "GE",SWIG_From_int((int)(GE)));
-  SWIG_Python_SetConstant(d, "GT",SWIG_From_int((int)(GT)));
-  SWIG_Python_SetConstant(d, "LE",SWIG_From_int((int)(LE)));
-  SWIG_Python_SetConstant(d, "LT",SWIG_From_int((int)(LT)));
-  SWIG_Python_SetConstant(d, "DFLT",SWIG_From_int((int)(DFLT)));
-  SWIG_Python_SetConstant(d, "MERGE",SWIG_From_int((int)(MERGE)));
-  PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
-  SWIG_addvarlink(SWIG_globals(),(char*)"pbs_errno",Swig_var_pbs_errno_get, Swig_var_pbs_errno_set);
-  SWIG_addvarlink(SWIG_globals(),(char*)"pbs_server",Swig_var_pbs_server_get, Swig_var_pbs_server_set);
-  SWIG_Python_SetConstant(d, "LOG_BUF_SIZE",SWIG_From_int((int)(16384)));
-  SWIG_Python_SetConstant(d, "LOG_EMERG",SWIG_From_int((int)(1)));
-  SWIG_Python_SetConstant(d, "LOG_ALERT",SWIG_From_int((int)(2)));
-  SWIG_Python_SetConstant(d, "LOG_CRIT",SWIG_From_int((int)(3)));
-  SWIG_Python_SetConstant(d, "LOG_ERR",SWIG_From_int((int)(4)));
-  SWIG_Python_SetConstant(d, "LOG_WARNING",SWIG_From_int((int)(6)));
-  SWIG_Python_SetConstant(d, "LOG_NOTICE",SWIG_From_int((int)(7)));
-  SWIG_Python_SetConstant(d, "LOG_INFO",SWIG_From_int((int)(8)));
-  SWIG_Python_SetConstant(d, "LOG_DEBUG",SWIG_From_int((int)(9)));
-  SWIG_addvarlink(SWIG_globals(),(char*)"log_event_mask",Swig_var_log_event_mask_get, Swig_var_log_event_mask_set);
-  SWIG_addvarlink(SWIG_globals(),(char*)"chk_file_sec_stderr",Swig_var_chk_file_sec_stderr_get, Swig_var_chk_file_sec_stderr_set);
-  SWIG_addvarlink(SWIG_globals(),(char*)"log_buffer",Swig_var_log_buffer_get, Swig_var_log_buffer_set);
-  SWIG_Python_SetConstant(d, "PBSEVENT_ERROR",SWIG_From_int((int)(0x0001)));
-  SWIG_Python_SetConstant(d, "PBSEVENT_SYSTEM",SWIG_From_int((int)(0x0002)));
-  SWIG_Python_SetConstant(d, "PBSEVENT_ADMIN",SWIG_From_int((int)(0x0004)));
-  SWIG_Python_SetConstant(d, "PBSEVENT_JOB",SWIG_From_int((int)(0x0008)));
-  SWIG_Python_SetConstant(d, "PBSEVENT_JOB_USAGE",SWIG_From_int((int)(0x0010)));
-  SWIG_Python_SetConstant(d, "PBSEVENT_SECURITY",SWIG_From_int((int)(0x0020)));
-  SWIG_Python_SetConstant(d, "PBSEVENT_SCHED",SWIG_From_int((int)(0x0040)));
-  SWIG_Python_SetConstant(d, "PBSEVENT_DEBUG",SWIG_From_int((int)(0x0080)));
-  SWIG_Python_SetConstant(d, "PBSEVENT_DEBUG2",SWIG_From_int((int)(0x0100)));
-  SWIG_Python_SetConstant(d, "PBSEVENT_FORCE",SWIG_From_int((int)(0x8000)));
-  SWIG_Python_SetConstant(d, "PBS_EVENTCLASS_SERVER",SWIG_From_int((int)(1)));
-  SWIG_Python_SetConstant(d, "PBS_EVENTCLASS_QUEUE",SWIG_From_int((int)(2)));
-  SWIG_Python_SetConstant(d, "PBS_EVENTCLASS_JOB",SWIG_From_int((int)(3)));
-  SWIG_Python_SetConstant(d, "PBS_EVENTCLASS_REQUEST",SWIG_From_int((int)(4)));
-  SWIG_Python_SetConstant(d, "PBS_EVENTCLASS_FILE",SWIG_From_int((int)(5)));
-  SWIG_Python_SetConstant(d, "PBS_EVENTCLASS_ACCT",SWIG_From_int((int)(6)));
-  SWIG_Python_SetConstant(d, "PBS_EVENTCLASS_NODE",SWIG_From_int((int)(7)));
-  SWIG_Python_SetConstant(d, "PBSEVENT_MASK",SWIG_From_int((int)(0x01ff)));
-  SWIG_Python_SetConstant(d, "MAX_PATH_LEN",SWIG_From_int((int)(1024)));
-  SWIG_Python_SetConstant(d, "SECS_PER_DAY",SWIG_From_int((int)(86400)));
-  SWIG_Python_SetConstant(d, "TRUE",SWIG_From_int((int)(1)));
-  SWIG_Python_SetConstant(d, "FALSE",SWIG_From_int((int)(0)));
-  SWIG_addvarlink(SWIG_globals(),(char*)"msg_daemonname",Swig_var_msg_daemonname_get, Swig_var_msg_daemonname_set);
-#if PY_VERSION_HEX >= 0x03000000
-  return m;
-#else
-  return;
-#endif
-}
-
Index: trunk/src/rm.h
===================================================================
--- trunk/src/rm.h	(revision 299)
+++ 	(revision )
@@ -1,94 +1,0 @@
-/*
-*         OpenPBS (Portable Batch System) v2.3 Software License
-*
-* Copyright (c) 1999-2000 Veridian Information Solutions, Inc.
-* All rights reserved.
-*
-* ---------------------------------------------------------------------------
-* For a license to use or redistribute the OpenPBS software under conditions
-* other than those described below, or to purchase support for this software,
-* please contact Veridian Systems, PBS Products Department ("Licensor") at:
-*
-*    www.OpenPBS.org  +1 650 967-4675                  sales@OpenPBS.org
-*                        877 902-4PBS (US toll-free)
-* ---------------------------------------------------------------------------
-*
-* This license covers use of the OpenPBS v2.3 software (the "Software") at
-* your site or location, and, for certain users, redistribution of the
-* Software to other sites and locations.  Use and redistribution of
-* OpenPBS v2.3 in source and binary forms, with or without modification,
-* are permitted provided that all of the following conditions are met.
-* After December 31, 2001, only conditions 3-6 must be met:
-*
-* 1. Commercial and/or non-commercial use of the Software is permitted
-*    provided a current software registration is on file at www.OpenPBS.org.
-*    If use of this software contributes to a publication, product, or
-*    service, proper attribution must be given; see www.OpenPBS.org/credit.html
-*
-* 2. Redistribution in any form is only permitted for non-commercial,
-*    non-profit purposes.  There can be no charge for the Software or any
-*    software incorporating the Software.  Further, there can be no
-*    expectation of revenue generated as a consequence of redistributing
-*    the Software.
-*
-* 3. Any Redistribution of source code must retain the above copyright notice
-*    and the acknowledgment contained in paragraph 6, this list of conditions
-*    and the disclaimer contained in paragraph 7.
-*
-* 4. Any Redistribution in binary form must reproduce the above copyright
-*    notice and the acknowledgment contained in paragraph 6, this list of
-*    conditions and the disclaimer contained in paragraph 7 in the
-*    documentation and/or other materials provided with the distribution.
-*
-* 5. Redistributions in any form must be accompanied by information on how to
-*    obtain complete source code for the OpenPBS software and any
-*    modifications and/or additions to the OpenPBS software.  The source code
-*    must either be included in the distribution or be available for no more
-*    than the cost of distribution plus a nominal fee, and all modifications
-*    and additions to the Software must be freely redistributable by any party
-*    (including Licensor) without restriction.
-*
-* 6. All advertising materials mentioning features or use of the Software must
-*    display the following acknowledgment:
-*
-*     "This product includes software developed by NASA Ames Research Center,
-*     Lawrence Livermore National Laboratory, and Veridian Information
-*     Solutions, Inc.
-*     Visit www.OpenPBS.org for OpenPBS software support,
-*     products, and information."
-*
-* 7. DISCLAIMER OF WARRANTY
-*
-* THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. ANY EXPRESS
-* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT
-* ARE EXPRESSLY DISCLAIMED.
-*
-* IN NO EVENT SHALL VERIDIAN CORPORATION, ITS AFFILIATED COMPANIES, OR THE
-* U.S. GOVERNMENT OR ANY OF ITS AGENCIES BE LIABLE FOR ANY DIRECT OR INDIRECT,
-* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
-* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*
-* This license will be governed by the laws of the Commonwealth of Virginia,
-* without reference to its choice of law rules.
-*/
-
-/*
-** Header file defineing the library calls for connecting
-** to the resource monitor.
-*/
-
-int openrm(char *, unsigned int);
-int closerm(int);
-int downrm(int);
-int configrm(int, char *);
-int addreq(int, char *);
-int allreq(char *);
-char* getreq(int);
-int flushreq(void);
-int activereq(void);
-void fullresp(int);
