Add pythonpath macros to 3Dloc build

Cribbed from pymodule.mk
Clean up build artifacts nicer