3D Image Reconstruction for CT and PET: A Practical Guide with Python