traditionally , of late , syphilis has been treated with penicillin , the tetracyclines class of drugs , or erythromycin , especially in cases where the patient has been found to be allergic to penicillin .