modified python client to resolve filename issues.