answered 1 year ago
Fundamental groups are only defined if you specify a base point. Given your setup:
S_based = S.set_base_point(a) S_based.fundamental_group() # will now work
The documentation is here.