Added defragmentation methods to python binding.