py: Automatically ake __new__ a staticmethod.

Addresses issue #622.