Update related.py
Update test_related.py
Merge pull request #1891 from mbellotti/master

[#1891] Update related.py