Fix VERSION and PREFIX by importing defs python3 style

https://bugzilla.gnome.org/show_bug.cgi?id=712520