Code cleaning of phono3py and phono4py