FIX#55: architecture detection on mixed systems

that is, when running a 32bit system over a 64bit kernel; the previous
behaviour was just detecting the kernel, aka "machine".
It now detects userspace architecture using standard python libraries
python2
run from repo
tidy up