Fixed python dll import and auto-set 64-bit flags