Convert Fileinputstream To Byte Array Python