Python program to test unwrapping images from cartesian to polar coordinates