Python Version of Cosc1123