changed server function to use python simplehttpserver