Added erase methods to Python script.