Python wrappers rewritten.