specify curves in pythonic way