The python docs warn of use of ```platform.architecture()[0]``` being unreliable in some cases and that ```sys.maxsize``` is better. Something like:
```
arch_bits = int(math.log(sys.maxsize, 2) + 1)
```
might be a more cross platform way of getting the architecture's bit size.

HTH