FIX: Finally have working tpyemaps for SWIG. Still need cleaning up and generalising though.