updating python library: __copy__ method