YOU SAID:
I was having a poo on the toilet when my sister got home with her shopping bags
INTO JAPANESE
私の妹が買い物袋を持って家に帰ったとき、私はトイレでうんちをしていた
BACK INTO ENGLISH
I was pooping in the bathroom when my sister came home with a shopping bag
INTO JAPANESE
姉が買い物袋を持って帰宅したとき、トイレでうんちしてた
BACK INTO ENGLISH
When my sister came home with a shopping bag, she was pooping in the bathroom
INTO JAPANESE
私の妹が買い物袋を持って帰宅したとき、彼女はバスルームでうんちをしていた
BACK INTO ENGLISH
She was pooping in the bathroom when my sister came home with a shopping bag
INTO JAPANESE
私の妹が買い物袋を持って帰宅したとき、彼女はトイレでうんちしていました
BACK INTO ENGLISH
When my sister came home with a shopping bag, she was pooping in the bathroom
INTO JAPANESE
私の妹が買い物袋を持って帰宅したとき、彼女はバスルームでうんちをしていた
BACK INTO ENGLISH
She was pooping in the bathroom when my sister came home with a shopping bag
INTO JAPANESE
私の妹が買い物袋を持って帰宅したとき、彼女はトイレでうんちしていました
it is unlikely that this phrase will ever reach equilibrium