Fixed upper limit to 1000 for euler1
Fixed python to work with python3 (removal of reduce)