Updated build with autotools: involved python and dist target.