zoo-animals rewrite in python3