import Image
background = Image.open('bg.png')
overlay = Image.open('ol.jpg')
background = background.convert('RGBA')
overlay = overlay.convert('RGBA')
new_img = Image.blend(background, overlay, 0.5)
new_img.save('new.png', 'PNG')
Overlay two same sized images in Python