Fixed a bug that would make flashing tiny images fail

When flashing very small images (i.e. size < `ESP_FLASH_BLOCK`) python would handle `ESP_FLASH_BLOCK` as an integer thus leaving the block-count at 0.