Added PEP257 compatibility (closes #6).