Doing some checks for SWIG

Change-Id: I1328c3d8cf86900de04d3693e74a68ad774ca66e
Typemaps and the rest of stuff must be between the inline code and the header

Change-Id: I732e16733748c065d83afe66744574776a624d43
Correcting script to receive the output and to run with python2

Change-Id: I4a0f2a03df83efd64133a585312eb23a762d03a4