CGI Python script to invoke payments library