python script to sync folders/files recursively

script idea credits to the origin script owner, and I made few changes to work for my requirement.