#!/usr/bin/env python3 import sys sys.stdout.write( 'Location: http://localhost:8000/resources/square128.png\r\n' 'status: 302\r\n' 'Content-Type: text/html\r\n\r\n' )