made do_sudo in common and cleaned up make.py