I will use isinstance() instead. This was written before I realized that existed.