from jtapi import *
import os
import sys
import re
import numpy as np
from scipy import misc


mfilename = re.search('(.*).py', os.path.basename(__file__)).group(1)

#########
# input #
#########

print('jt - %s:' % mfilename)

handles_stream = sys.stdin
handles = gethandles(handles_stream)
input_args = readinputargs(handles)
input_args = checkinputargs(input_args)


##############
# processing #
##############

myImageFilename = input_args['myImageFilename']

myImage = np.array(misc.imread(myImageFilename), dtype='float64')

print('>>>>> "myImage" has type "%s" and dimensions "%s".' %
      (str(myImage.dtype), str(myImage.shape)))

print '>>>>> position [1, 2] (0-based): %d' % myImage[1, 2]

data = dict()
output_args = dict()
output_args['OutputVar'] = myImage

##########
# output #
##########

writedata(handles, data)
writeoutputargs(handles, output_args)

@@ -458,16 +458,76 @@
 name'%5D%0A%0A
+print '%3E%3E%3E%3E%3E loading %22myImage%22 from %22%25s%22' %25 myImageFilename%0A
 myImage 

Add more detailed print in first module