python type checking post