Regulation of the type IV pili molecular machine by dynamic localization of two motor proteins