Remove use of PyCXX in core C++ extensions
Change how array converter functions are defined
Add .clang-format to repository