Match ALL_CAPS constants in dotted names

Previously, `self.CONSTANT` was not matched.
`print` must be an ident if followed by `,`

Or well, it's only valid syntax in Python 3.
Dotted names may span multiple lines

Even though we can't really match that correctly, at least match the
leading dot on a new line or after a function call. That's more correct.

Example:
ident = (value.dotted
         .__init__)
Add my personal testing file

It could be of use for regression testing later, or whatever. In any
case it should illustrate most of the changes of my pull request and can
easily be extended.