Python improvements: ImageSpec overhaul, tests, fixes