get file download working for pyhton 2