Add codegen for andor ctypes interface

'andor.py' is generated by 'make_andor.py', which contains its template
code.
Fix bugs with codegen and add atutil wrapping