Modified the code for convert_to_regadata

Now I am checking for inliers in the python script as well