(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 building, in such manner as to prevent their seeing, or conversing or holding any intercourse with, the male prisoners;