How to remove background from images using Python?