(1)in a prison containing female as well as male prisoners, the females shall be imprisoned in separate buildings, or separate parts of the same buildings, in such manner as to prevent their seeing or conversing or holding any intercourse with the male prisoners;