Scripting: custom import works in python2.7 but not dpython