Optional type system for python 2