Python object validation module