Added setup.py. Sample position validation, request_type added to all APIs