Python Image Open Function Javascript Practice