By using the following method you can split and parse a string in Python "2.7.0_bf4fda703454".split("_") gives a list of strings:
>>"2.7.0_bf4fda703454".split("_")
['2.7.0', 'bf4fda703454']
This splits the string at every underscore. If you want it to stop after the first split, use "2.7.0_bf4fda703454".split("_", 1).
To know more about this you can have a look at the following video tutorial:-