How To Do Type Checking In Python With Example