Adding hooks for testing and such into python wrapper