Follow the standard Python formatting rules when writing code for Sage, as explained at http://www.python.org/dev/peps/pep-0008/ and http://www.python.org/dev/peps/pep-0257/. In particular,
def set_some_value()
def SetSomeValue()
PolynomialRing.
Note however that some functions do have uppercase letters where it makes sense.
For instance, the function for lattice reduction by the LLL algorithm is called
Matrix_integer_dense.LLL.
See About this document... for information on suggesting changes.