Isinstance Int Python Method Chaining