Create typecheck.py

Decorator for type checking of function arguments.