Open uploaded file in binary mode to solve python windows issues