python script to remove directories recursively and just keep files