Added python file and a fairly progressed implementation of mapper.
There are still some issues though that need to be taken care of by
comparing to the matlab implementation.