Python: Position of next occurrence of a sub-string

Python code to get the position of next or second occurrence of a sub-string within a string.

Note: Above code works in both Python 2 and Python 3

Output:
position-of-second-occurence-python