Folding Rules

Taken python folding rules