make pygame optional

pygame should be optional in the python3 branch too.