Clear the dest before copying new copy

 - Also, python3 compatible

Signed-off-by: Mansour Behabadi <mansour@oxplot.com>