Python shapes class library