Image Processing Algorithm In Python Step