Completed Python files for Sphere Online Judge (SPOJ)