Create publish3d.py

Modified from sub_3d.py (deseram07)